Error message in running 4-group ADE. mxCompare

Any thoughts on why this error comes up?

mxCompare( modelADEq, fitADE )
Error in if (rfu == “r’Wr”) { : argument is of length zero

1 Like

I do not, sorry. I would need more information to have some idea.

1 Like

This error occurred running Day 3 script about line 485: practicalDay3.R

1 Like

It’s not a nice error message that I think I’ll need to fix, but here’s what I think is going wrong from a user perspective:

I think ‘modelADEq’ has not been run. To do mxCompare(), all the models you’re comparing should be run. The appropriate comparison is probably something like

mxCompare(fitADEq, fitADE)

Does that help?