I have ten variables, some with missing data. I know that using mean(of x1-x10) will compute the mean to include missing data.
How do I tell SAS to compute the mean for complete data (x1-x10)/10 and for data with exactly one missing value (x1-x10)/9? But to return a missing value as the mean for data with more than one missing value?
I've been trying to use if/then statements, but I'm not quite sure where I'm going wrong..
mean
computation. – Richard