Suppose we have 20 subjects, and for each subject we have four variables: X1, X2, X3, and X4. I want to calculate the average for each subject, but the problem is whenever there is a missing value(s), SAS won't give the mean value. How can I do that while adjusting for n (if no missing value, n=4, if there is one missing values, then n=3, etc.) Thanks.