Skip to content
Back to formatted view

Raw Message

Message-ID: <neavbtc2turvso9e9peeup9rmjkq4r4fgt@4ax.com>
Date: 2001-03-26T20:44:05Z
From: Duncan Murdoch
Subject: How do I generate a random sample with an given variance?
In-Reply-To: <20010326192913.36803.qmail@web12001.mail.yahoo.com>

On Mon, 26 Mar 2001 11:29:13 -0800 (PST), you wrote in message
<20010326192913.36803.qmail at web12001.mail.yahoo.com>:

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

Generate a random sample, then rescale it to have the variance you
require.

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