Generate a loading matrix Lambda from various shortcuts, each assuming a simple structure.
Either define loadings
, or define nIndicator
and loadM
(and optionally loadSD
), or define
nIndicator
and loadMinMax
.
genLambda(
loadings = NULL,
nIndicator = NULL,
loadM = NULL,
loadSD = NULL,
loadMinMax = NULL
)
The loading matrix Lambda.
A list providing the loadings by factor, e. g. list(c(.4, .5, .6), c(7, .8, .8))
to define two factors with three indicators each with the specified loadings. The vectors must not contain secondary loadings.
Vector indicating the number of indicators for each factor, e. g. c(4, 6)
to define two factors with 4 and 6 indicators, respectively
Either a vector giving the mean loadings for each factor or a single number to use for every loading.
Either a vector giving the standard deviation of loadings for each factor or a single number, for use in conjunction with loadM
. If NULL
, SDs are set to zero. Otherwise, loadings are sampled from a normal distribution.
A list giving the minimum and maximum loading for each factor or a vector to apply to all factors. If set, loadings are sampled from a uniform distribution.