Skip to content
Back to formatted view

Raw Message

Message-ID: <3FF733FC.3080906@pdf.com>
Date: 2004-01-03T21:28:28Z
From: Spencer Graves
Subject: (no subject)
In-Reply-To: <000a01c3d22f$a7825be0$b2e901a3@SANT141801>

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