Proc univariate datasashelpclass noprint. To compute the geometric mean for rows first transform the individual data values to logs then compute the mean of the logs then compute the antilog of those means. Log xnn For calculating the Antilog in programming we use exponent function exp.
Calculating Geometric Mean with Logarithms 1 Add the logarithmic values for each number in the set.
The first step in calculating the Geometric Mean using this method is to determine the logarithm of each data point using your calculator. Proc univariate datasashelpclass noprint. If instead they are stored in a single variable ie. Thus to arrive at the value of 1000 after 3 years the return will be taken at 698 every year.