[R] How do I generate a random sample with an given variance?

Uwe Ligges ligges at statistik.uni-dortmund.de
Mon Mar 26 21:58:33 CEST 2001


pooh rondstr wrote:
> 
> Hi R gurus,
> 
> How do I generate a random sample with  a given
> variance?

It depends. ;-)

Assuming you want to generate a normal distributed random sample, have a
look at
?rnorm

Uwe Ligges
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !)  To: r-help-request at stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._



More information about the R-help mailing list