yrosseel / lavaan

an R package for structural equation modeling and more
http://lavaan.org
429 stars 98 forks source link

modindices() fails when conditional.x = TRUE #117

Closed TDJorgensen closed 6 years ago

TDJorgensen commented 6 years ago

Should this fail when there are conditional.x predictors in the model?

example(cfa)
modindices(update(fit, add = 'visual ~ ageyr', conditional.x = TRUE))

I think the error occurs at line 718 of xxx_lavaan.R (when lavaan(..., do.fit = FALSE) is being called by lav_object_extended()), but I'm not sure why it occurs.

yrosseel commented 6 years ago

Fixed in lavaan dev 0.6-3.1314