[R] (no subject)

Spencer Graves spencer.graves at pdf.com
Sat Jan 3 22:28:28 CET 2004


      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:

>Is there a package available (to modify?) for Monte Carlo simulation?
>Thanks so much!
>
>
>	[[alternative HTML version deleted]]
>
>______________________________________________
>R-help at stat.math.ethz.ch mailing list
>https://www.stat.math.ethz.ch/mailman/listinfo/r-help
>  
>




More information about the R-help mailing list