You are here

listwise deletion for missingness in defintion variables?

4 posts / 0 new
Last post
smedland's picture
Offline
Joined: 08/04/2009 - 16:08
listwise deletion for missingness in defintion variables?

Hi
I thought the listwise deletion approach to dealing with missingness in definition variables used in clasicMX was carried over to OpenMX. Some teaching scripts which used to run are now yeilding the following errors (openmx version number: 1.0.7-1706)
Error in runHelper(model, frontendStart, intervals, silent, suppressWarnings, :
Error: NA value for a definition variable is Not Yet Implemented.

Is there an argument to mxRun or mxData that I can include to get old-school automatic listwise deletion?
thanks
Sarah

tbates's picture
Offline
Joined: 07/31/2009 - 14:25
need to delete cases with missing def vars

hi sarah,
Best to be explicit and delete the lines with missing def vars before hand:

twinData = twinData[!is.na(twinData$def),]

mel2011's picture
Offline
Joined: 07/31/2011 - 17:46
I have the same query. Thanks

I have the same query. Thanks for solving the riddle. You are such a saviour.

tbates's picture
Offline
Joined: 07/31/2009 - 14:25
need to delete cases with missing def vars

hi sarah,
Best to be explicit and delete the lines with missing def vars before hand:

twinData = twinData[!is.na(twinData$def),]

Log in or register to post comments