hi
i checked the package corcounts, but it seems to be used for generating
high dimensional correlated count data. is it also proper for generating
data with N=50 for instance?
thanks
--
View this message in context:
At 00:37 19/03/2011, John Sorkin wrote:
How would one generate data to be used in a simulation of a repeated
measures ANOVA given a known (1) within-person correlation with
known (2) mean and SD of data obtained at each of three times of observation?
You do not say which distribution you
How would one generate data to be used in a simulation of a repeated measures
ANOVA given a known (1) within-person correlation with known (2) mean and SD of
data obtained at each of three times of observation?
Thanks,
John
John Sorkin
Chief Biostatistics and Informatics
Univ. of Maryland School
Hi John,
This is not advanced enough for serious applications, but if you are
just looking for a simple way to make example data, you could do
something like:
gencor - function(order, mu, sd, r) {
X - matrix(rnorm(prod(order), mean = mu, sd = sd), nrow = order[1],
ncol = order[2])
R -
4 matches
Mail list logo