I have a SAS dataset, let's say:
No d1 d2 d3 ... dn
1 2 3 4 ... n1
2 3 4 5 ... n2
3 4 5 6 ... n3
Now I need to find the average values of all columns in SAS. Is there any way to do this?
The number of columns is not specific. If I need the average values of the columns d1- dn, then the expected result:
3 4 5 .. (n1+n2+n3)/3
Is there a way to do this, Either at the data stage, or using proc sql or proc iml?
source
share