GenFactorMatrix: Generate Factor Loadings Matrix

Description Usage Arguments Value

View source: R/GenFactorMatrix.R

Description

GenFactorMatrix returns a matrix of factor loadings, based on number of items, factors, and loadings

Usage

1
2
GenFactorMatrix(nfactors = 5, items = c(5, 5, 5, 5, 5), itemsR = c(2, 2,
  2, 2, 2), loading = 0.5, loading_norm = FALSE, loading_norm_sd = 0.025)

Arguments

nfactors

Number of factors

items

vector of total number of items per factor

itemsR

Number of items per factor that are reverse scored

loading

Factor loading magnitude. Default is .5

loading_norm

If TRUE, generate factor loadings that average to loading

loading_norm_sd

If loading_norm is TRUE, standard deviation of loadings.

Value

matrix of n factors by i items


smasongarrison/enumR documentation built on Feb. 3, 2021, 10:03 p.m.