factorscores_lmfa: Calculating state-specific factor scores

View source: R/7Step1Factorscores.r

factorscores_lmfaR Documentation

Calculating state-specific factor scores

Description

factorscores_lmfa calculates factor scores by means of the regression method.

Usage

factorscores_lmfa(data, model, oblique = TRUE, rounding = 4)

Arguments

data

The dataset (must be a dataframe and contain complete cases only).

model

The model estimated with step1 (must be of class lmfa_step1).

oblique

Indicates whether the factor scores are obtained for the obliquely rotated loadings (TRUE) or unrotated loadings (FALSE) (must be a logical statement).

rounding

The number of decimals to which the results should be rounded (must be a single scalar).

Examples

## Not run: 
ESM_factorscores <- factorscores_lmfa(data, 
                     model, 
                     oblique = TRUE,
                     rounding = 4
                     )

## End(Not run)

LeonieVm/lmfa documentation built on Dec. 5, 2023, 1:38 p.m.