free_params: Calculate the number of estimated parameters

Description Usage Arguments Examples

View source: R/free_params.R

Description

Given a fitted objects from lavaan, this functions returns the number of free parameter. Note, this function will give incorrect results when intercepts are estimated and should be not used.

Usage

1

Arguments

x

A lavaan fitted object

Examples

1
2
3
4
5
6
iq.cfa <- '
verb =~ info + comp + arith + simil + digit + vocab
perf =~ pictcomp + parang + block + object + coding
'
fit <- cfa(iq.cfa, data = wiscsem)
free_params(fit)

cddesja/hemp documentation built on April 7, 2021, 9:24 p.m.