SachaEpskamp / semPlot

Path diagrams and visual analysis of various SEM packages' output
GNU General Public License v2.0
61 stars 20 forks source link

Multi-group models and different number of parameters #38

Open mpartin opened 2 years ago

mpartin commented 2 years ago

Hello :)

I tested a simple multi-group model with different equations between groups :

HS.model <- '
              group: Pasteur
              visual  =~ x1 + x2 + x3
              textual =~ x4 + x5 + x6
              speed   =~ x7 + x8

              group: Grant-White
              visual  =~ x1 + x2
              textual =~ x4 + x5 + x6
              speed   =~ x7 + x8 + x9
'

fit <- cfa(HS.model,
           data = HolzingerSwineford1939,
           group = "school")

summary(fit)

semPaths(fit)

I got : Error in dimnames(x) <- dn: the length of 'dimnames' [2] is not equal to the range of the array

Do you have any turn-around ? :)

Thanks for your time !

jmmax commented 1 year ago

I am having the same issue. Did you find a solution?