01-09-2017 12:02 PM
01-09-2017 12:12 PM - edited 01-09-2017 12:13 PM
"Unavailable" is a chrachter type field.
You need to create a new numeric variable using
new_variable = input(old_variable, ?? best.);
in this case the non numeric value will be assigned as missing value
and that is what you need for statistics and analyze.
01-09-2017 12:16 PM
Setting them to missing > removed from analysis. SAS will discard any record from analysis where any of the model variables are missing. If you don't assign them a "valid" category then you may as well use where clause to subset the data as they would be excluded anyway.
Or take a pass at imputing but I wouldn't go that route unless the number of "missing" or "unavailable" is large relative to the sample size. How large? depends on the actual data.