Suppose I have the following SAS data set
data have;
input id$ x1 x2 x3;
datalines;
1 10 5 15
2 15 10 7
3 12 10 9
4 14 15 10
;
run;
I would like to calculate the geometric mean, geometric coefficient of variation (formula is 100*(exp(ASD^2)-1)^0.5
ASD is the arithmetic SD of log-transformed data.) of each variable x1
, x2
, and x3
. How can I perform these operations?
As I am completely new in SAS, I would appreciate your support.