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]]


______________________________________________
[EMAIL PROTECTED] mailing list
https://www.stat.math.ethz.ch/mailman/listinfo/r-help



______________________________________________ [EMAIL PROTECTED] mailing list https://www.stat.math.ethz.ch/mailman/listinfo/r-help

Reply via email to