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

From: HBaize <HBaize_at_buttecounty.net>
Date: Wed, 04 Mar 2009 13:53:35 -0800 (PST)

Could that be extended to generate a population data set with known skew and kurtosis?
If so, how?

Thanks in advance for suggested solutions.

Harold

Daniel Nordlund-2 wrote:
>
>
>
> Something like this may help get you started.
>
> std.pop <- function(x,mu,stdev){
> ((x-mean(x))/sd(x)*stdev)+mu
> }
>
> population <- std.pop(rnorm(1000),10,5)
>
> Hope this is helpful,
>
> Dan
>
> Daniel Nordlund
> Bothell, WA USA
>
> ______________________________________________
> R-help_at_r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide
> http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.
>
>

-- 
View this message in context: http://www.nabble.com/How-to-generate-fake-population-%28ie.-not-sample%29-data--tp22322488p22340256.html
Sent from the R help mailing list archive at Nabble.com.

______________________________________________
R-help_at_r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.
Received on Wed 04 Mar 2009 - 20:55:41 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Wed 04 Mar 2009 - 21:30:26 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.

list of date sections of archive