Skip to content

(no subject)

2 messages · Sherry Forbes, Spencer Graves

#
What do you want to simulate?  Have you looked at "help.start()" 
-> "An introduction to R" -> "probability distributions"?  This contains 
a list of standard distributions with the comment, "Prefix the name 
given here by d for the density, p for the CDF, q for the quantile 
function and r for simulation (random deviates)."  For example, 
runif(1000) produces a vector of 1000 uniform pseudo-random deviates, 
while rnorm(1000) produces a vector of 1000 normal(0, 1) pseudo-random 
variates.  If you want other distributions, you can do a search of the 
archives at "www.r-project.org" for the distribution of your choice.  If 
this doesn't answer your question, you might try being more specific -- 
e.g., trying something, then asking why it doesn't produce what you want. 

      hope this helps.  spencer graves
Sherry Forbes wrote: