Missing value settings for single variables only?
Hi,
I need to define missing values in my data set. I am aware of the "Preferences options" including the default settings NaN, nan, etc.
I need to add "0" as a missing value but only for a few variables not for the entire data set. Would that be possible to define m.v. column per column or do I have to define them for all variables identical?
Thanks
Comments
Hmm it seems to me that you would be much better off recoding those zeros as NAs. Presently you cannot define missing values on a column-by-column basis. It might be a reasonable feature request for our GitHub page (for details see https://jasp-stats.org/2018/03/29/request-feature-report-bug-jasp/)!
Cheers,
E.J.
juehoe
When you say you want to "add zero as a missing value," I assume that there are currently zeros throughout the dataset, but that for a few columns, all of the zeros should be treated as missing values. If that's the case, then for each existing variable in which zero is supposed to count as a missing value, you could create--within JASP--a new variable in which the value in the new variable is set to equal the value of the old variable IF the old-variable value is not zero. Thus, the new-variable column will end up with missing values where the old variable had zeros.
R