listwise deletion for missingness in defintion variables?

3 replies [Last post]
smedland's picture
Offline
Joined: 08/04/2009

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
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),]

tbates's picture
Offline
Joined: 07/31/2009
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
I have the same query. Thanks

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