| genData | R Documentation |
Generates random data from population variance-covariance matrix and population means, either from a multivariate normal distribution, or using one of various approaches to generate non-normal data.
genData( N = NULL, Sigma = NULL, mu = NULL, nSets = 1, gIdx = NULL, modelH0 = NULL, simOptions = NULL )
N |
sample size. |
Sigma |
population covariance matrix. |
mu |
population means. |
nSets |
number of data sets to generate |
gIdx |
if not |
modelH0 |
a |
simOptions |
additional arguments specifying the data generation routine |
Returns the generated data
## Not run: gen <- semPower.genSigma(Phi = .2, loadings = list(rep(.5, 3), rep(.7, 3))) data <- genData(N = 500, Sigma = gen$Sigma) ## End(Not run)