R语言计算几何平均数(Geometric Mean)实战
目录
#算数平均与几何平均
#仿真数据
x <- c(8, 9, 4, 1, 6, 4, 6, 2, 5)
# Create example data
#手动计算几何平均数
exp(mean(log(x)))
# Co
目录
x <- c(8, 9, 4, 1, 6, 4, 6, 2, 5)
# Create example data
exp(mean(log(x)))
# Co
打赏作者