Hi All,
I was wondering what is the best practice for finding the listwise missing observations in a set.
I was using the “Is Missing” function in order to indicate missing observations. Yet the result was somewhat disappointing since it does not take into account missing value codes. Apparently, the missing value codes only works with platforms.
For example:
dt = Open( "$SAMPLE_DATA/Big Class.jmp" );
// set a missing value
:weight[1] = .;
// set missing value codes
:weight << set property ("Missing Value Codes", -1);
// set a missing category observation
:weight[2] = -1;
// new column indicating missing values for weight
dt << new column ("Missing", formula(If(Is Missing(:weight), 1, 0)));
The new column indicates row 1 as missing while not so for row 2.
Thanks,
Ron