Skip to content
Back to formatted view

Raw Message

Message-ID: <3ABF9F69.131BB81F@statistik.uni-dortmund.de>
Date: 2001-03-26T19:58:33Z
From: Uwe Ligges
Subject: How do I generate a random sample with an given variance?

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