We can calculate the geometric mean based on these R functions as follows. Compute one mean median etc. In the first example we will compute the geometric mean manually based on the already built-in R functions exp mean and log.
It comes from the arithmetic mean but uses multiplication and roots.
To use the geometric mean firstly multiply the numbers together and then take the nth root of that value. Prism uses base 10 common logarithms and then takes ten to the power of the mean of the logarithms to get the geometric mean. 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. Those values are the geometric mean and its 95 CI.