InterviewSolution
Saved Bookmarks
| 1. |
What is the difference between calculating the 'mean' using the mean function and PROC MEANS? |
|
Answer» The N function counts the number of non-missing values in a row DATA a; x1=2; X2=3; x3=4; nvars_nonmiss=n(of x1-x3); put nvars_nonmiss=; RUN; proc print data = a; run;Output – OBS x1 x2 x3 nvars_nonmiss 1 2 3 4 3 |
|