simsem / semTools

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

Check is.mids() #52

Closed cddesja closed 5 years ago

cddesja commented 5 years ago

Check if the mice package is loaded, if it is proceed to to check if the data is an is.mids() object. If so, get it in the appropriate format for runMI().

This fixes #51

TDJorgensen commented 5 years ago

I did not realize mids objects inherited from list, but of course it is an S3 class. Thanks for catching this. I edited the pull request before merging. Please make sure it works as expected now.

cddesja commented 5 years ago

Thanks, @TDJorgensen. Seems to work as expected.