semPower.getDf: semPower.getDf

Description Usage Arguments Value Examples

View source: R/convenienceFunctions.R

Description

Convenience function to determine the degrees of freedom of a given model provided as lavaan model string. This requires the lavaan package.

Usage

1
semPower.getDf(lavModel)

Arguments

lavModel

the lavaan model string

Value

df

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
## Not run: 
lavModel <- '
f1 =~ x1 + x2 + x3 + x4
f2 =~ x5 + x6 + x7 + x8
f3 =~ y1 + y2 + y3
f3 ~ f1 + f2
'
semPower.getDf(lavModel)

## End(Not run)

semPower documentation built on Nov. 2, 2021, 1:06 a.m.