Hello, I would like to calculate the mean of multiple variables (VAR1, VAR2, VAR3), not by column or row, but all the values. For example, I would like to get the mean of 34, 45, 31, 35, 41 = 186/5 = 37.2 This is an example of the data ID VAR1 VAR2 VAR3 ID1 34 45 0 ID2 31 0 35 ID3 0 0 41 I only have the code for a single variable. PROC SURVEYMEANS DATA=sample1 MEAN SUM VARMETHOD=BRR; DOMAIN DHHDDRI; WHERE VAR1 > 0; VAR VAR1; WEIGHT WTS_P; REPWEIGHTS BSW1-BSW500; RUN; Thanks in advance!
... View more