scavar: Scaling Item Variances

View source: R/scavar.R

scavarR Documentation

Scaling Item Variances

Description

Function scales variances of each item in model. To get scaled variances for latent variables, run the original model again, but fix each item with the scaled variance provided by this function.

Usage

scavar(LambdaMatrix, col)

Arguments

LambdaMatrix

get LambdaMatrix directly from your lavaan object (fit_model <- sem(model, ...)).

LambdaMatrix <- lavInspect(fit_model, what = "std.all")

col

select column for which latent variable the variances should be scaled.

scavar(LambdaMatrix$lambda, 2)

Details

Scaling variances makes values comparable.

Value

List of the scaled varaince for each item is returned.

Author(s)

Helene M. von Gugelberg

References

Schweizer, K., & Troche, S. (2019). The EV scaling method for variances of latent variables. Methodology.

Examples


function (LambdaMatrix, col) 

hvongbg/bindabox documentation built on Feb. 1, 2025, 5:30 p.m.