I need to determine both the
- number of free parameters to estimate and
- degrees of freedom
of a structural equation model. I know how to calculate these values by hand. However, the model is rather big and I would prefer to use software for this.
Does anyone know how to obtain both values?
I am currently using the R
package, lavaan
. However, the model is so large that it takes an eternity to estimate. So I would like to avoid this.
I then tried to obtain the lavaan
output by limiting the number of iterations to 1: control=list(iter.max=1)
. However, lavaan
reports it doesn't converge (what a surprise) and only outputs NA
s.
So is there any way around either calculating those values by hand (which is error prone) or by estimating the model?
Here is the model:
mTotal <- 'a =~ a1 + a2 + a3 + a4 + a5 + a6 + a7 + a8 + a9 + a10
b =~ b1 + b2 + b3 + b4 + b5 + b6 + b7 + b8 + b9 + b10
c =~ c1 + c2 + c3 + c4 c5 + c6 + c7 + c8 + c9 + c10
d =~ d1 + d2 + d3 + d4 + d5
e =~ e1 + e2 + e3 + e4 + e5
f =~ f1 + f2 + f3 + f4 + f5
g =~ g1 +g2 + g3 + g4 + g5
h =~ h1 + h2 + h3 + h4 + h5
i =~ i1 + i2 + i3 + i4 + i5 + i6
j =~ j1 + j2 + j3 + j4 + j5 + j6
k =~ k1 + k2 + k3 + k4 + k5 + k6
l =~ l1 + l2 + l3 + l4 + l5
m =~ m1 + m2 + m3 + m4 + m5
n =~ n1 + n2 + n3 + n4 + n5 + n6 + n7 + n9
o =~ o1 + o2 + o3 + o4 + o5
p =~ p1 + p2 + p3
q =~ q1 + q2 + q3 + q4 + q5 + q6
r =~ r1 + r2 + r3 + r4 + r5 + r6
s =~ s1 + s2 + s3 + s4 + s5 + s6 + s8 + s9
t =~ t1 + t2 + t3 + t4'
mTotal.fit <- cfa(mTotal,
data = dataset,
estimator = "ML",
control=list(iter.max=1))