So say some of the variables have missing values beause (i)the value is missing, and (ii) the value is 0. Does SAS skip these observations?
Variables referenced in the model statement, by, class, weight and in the case of the survey procs strata or cluster that are missing will have the record excluded from the analysis. In some cases, class variables for example, can be set to treat missing as a category (though all of the missing will be treated as a single group value).
A value of zero will be treated as a valid value unless on a weight statement (generally). If you are using zero for "missing" where it does not have a meaning of zero associated with the other values for that variable (height of a person comes to mind where zero is unlikely) then you might want to reconsider the value, at least in modeling proc.
In the majority of procedures, any missing value in the row, within will cause it to be excluded entirely.
Variables referenced in the model statement, by, class, weight and in the case of the survey procs strata or cluster that are missing will have the record excluded from the analysis. In some cases, class variables for example, can be set to treat missing as a category (though all of the missing will be treated as a single group value).
A value of zero will be treated as a valid value unless on a weight statement (generally). If you are using zero for "missing" where it does not have a meaning of zero associated with the other values for that variable (height of a person comes to mind where zero is unlikely) then you might want to reconsider the value, at least in modeling proc.
Don't miss out on SAS Innovate - Register now for the FREE Livestream!
Can't make it to Vegas? No problem! Watch our general sessions LIVE or on-demand starting April 17th. Hear from SAS execs, best-selling author Adam Grant, Hot Ones host Sean Evans, top tech journalist Kara Swisher, AI expert Cassie Kozyrkov, and the mind-blowing dance crew iLuminate! Plus, get access to over 20 breakout sessions.
ANOVA, or Analysis Of Variance, is used to compare the averages or means of two or more populations to better understand how they differ. Watch this tutorial for more.
Find more tutorials on the SAS Users YouTube channel.