Is there a way to back-transform the mean of a vector of log(x+1) values in R? I tried to use the expm1() function from the base package, but the number is definitely not correct.
df <- c(11, 24, 21, 63, 44, 95, 12, 43, 0, 5, 26, 22, 25, 48, 86, 2)
mean(df)
This gives us 32.9375
Now, if we do ...
df.log1p <- log1p(df)
mean(df.log1p)
This gives us 3.0382116
Now, can I back-transform that single mean value to get the non-log1p mean value of 32.9375?
I used expm1(3.0382116) to try that but I got 19.86789.
Is this possible at all?
