[R] How to generate fake population (ie. not sample) data?

CB cb.lists at gmail.com
Wed Mar 4 10:53:32 CET 2009


2009/3/4 Thomas Lumley <tlumley at u.washington.edu>:
> On Wed, 4 Mar 2009, David Winsemius wrote:
>
>> In what ways is rnorm not a satisfactory answer?
>
> My guess was that CB wants to generate a finite population whose mean and
> variance are specified, which would involve rnorm() followed by centering
> and scaling.
>

Exactly. Being an R novice, I was thinking more of built-in functions;
but I see now it's straightforward enough to do.




More information about the R-help mailing list