genData {semPower} | R Documentation |
genData
Description
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.
Usage
genData(
N = NULL,
Sigma = NULL,
mu = NULL,
nSets = 1,
gIdx = NULL,
modelH0 = NULL,
simOptions = NULL
)
Arguments
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 |
Value
Returns the generated data
Examples
## 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)
[Package semPower version 2.1.0 Index]