simsem / semTools

Useful tools for structural equation modeling
75 stars 36 forks source link

auxiliary function #1

Closed rubenarslan closed 11 years ago

rubenarslan commented 12 years ago

I get the following error

model1sem <- sem(model=model1,fixed.x=F,data=mtfs,missing="fiml",std.lv=T)
model1sem.aux = auxiliary(model1sem,aux="maternalage")
Error in tmp[cbind(REP$row[idx], REP$col[idx])] <- partable$free[idx] : 
    NAs are not allowed in subscripted assignments

this:

  paternalage ~~ 1*maternalage
  # OR
  paternalage ~~ 0*maternalage

works fine in my model, but I can't estimate the relationship because the two are heavily collinear (model won't fit) and I really only need it for FIML. I also don't necessarily want to to hurt my fit indices by fixing the relationship to something unrealistic.

psunthud commented 12 years ago

Could you please send me your data and script to my email, psunthud@ku.edu (or at least post your script)? I will check what really happens. The auxiliary function is currently not perfect. There are some models that the auxiliary function does not work?

psunthud commented 11 years ago

We have updated the new version that updates the auxiliary function. Please open a new issue if you still have a problem with the current version.