Geometric Mean in R (Examples) | exp(), mean(), log() & geometric.mean() Function of psych Package

preview_player
Показать описание
R code of this video:

x <- c(8, 9, 4, 1, 6, 4, 6, 2, 5) # Create example data
x # Print example data

exp(mean(log(x))) # Compute geometric mean manually

library("psych") # Load psych package

Follow me on Social Media:

Рекомендации по теме