1.

Output

Answer»

The mean() function is used to calculate the mean of one observation across the variable. It is used to generate a horizontal DATA summary.

DATA A; INPUT NAME$ SUBJ1 SUBJ2 SUBJ3; CARDS; A 95 96 99 B 85 90 70 C 60 70 80 ; RUN; DATA B; SET A; MEAN = MEAN(SUBJ1,SUBJ2,SUBJ3); RUN; PROCPRINT; RUN;

Proc Means is used to calculate the mean of a variable across all observations.

It is used for generating the vertical data summary (i.e. mode of operation is column-wise).

By default, it calculates N, Mean, Std DEV, Minimum, Maximum statistics.



Discussion

No Comment Found