How to generate fake population (ie. not sample) data?
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.