Returns a 1-by-n matrix of estimating equation contributions for the
geometric mean. When log_theta = TRUE (default), solves
\(\log(Y_i) - \log(\theta)\). When log_theta = FALSE, solves
\(\log(Y_i) - \theta\) where \(\theta\) is the log of the geometric
mean.
Examples
y <- c(1, 2, 3, 1, 4, 5, 3, 2, 6, 7)
psi <- function(theta) ee_mean_geometric(theta, y = y)
m <- m_estimate(stacked_equations = psi, init = 1)
coef(m)
#> theta_1
#> 2.805809