free_params: Calculate the number of estimated parameters

Description Usage Arguments Examples

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/REPM documentation built on May 13, 2019, 2:21 p.m.