genLambda {semPower}R Documentation

genLambda

Description

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.

Usage

genLambda(
  loadings = NULL,
  nIndicator = NULL,
  loadM = NULL,
  loadSD = NULL,
  loadMinMax = NULL
)

Arguments

loadings

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.

nIndicator

Vector indicating the number of indicators for each factor, e. g. c(4, 6) to define two factors with 4 and 6 indicators, respectively

loadM

Either a vector giving the mean loadings for each factor or a single number to use for every loading.

loadSD

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.

loadMinMax

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.

Value

The loading matrix Lambda.


[Package semPower version 2.1.0 Index]