
I am trying to recode the missing frequency counts to unknown and have 0 missing and place them in the unknown category instead. My code does not produce errors but it does not recode them as unknown
I tried using if/then statements to recategorize

I am trying to recode the missing frequency counts to unknown and have 0 missing and place them in the unknown category instead. My code does not produce errors but it does not recode them as unknown
I tried using if/then statements to recategorize
Copyright © 2021 Jogjafile Inc.
Use the
MISSING()function to detect missing values.This approach has problems though. If the recode value is longer than the variable, the recode value will be truncated.
If gender is $1, the assignment
gender="UNKNOWN;will yield gender = 'U'.A better approach is to use a custom format to map the missing value to your indicator.