我试图找到给定 beta = 1 的 beta 分布的 alpha 的 MLE 估计值。我尝试使用来自estimatetools 包的 maxlogL 但 g
x <- rbeta(n = 1000, shape1 = 0.7, shape2 = 1)
alpha_hat <- maxlogL(x = x, dist = "dbeta", fixed = list(shape2 = 1), lower = (0), upper = (1), link = list(over = "shape1", fun = "log_link"))
summary(alpha_hat)
对于正态分布,以下计算确实给了我对 sd 的估计。
x <- rnorm(n = 10000, mean = 160, sd = 6)
theta_1 <- maxlogL(x = x, dist = 'dnorm', control = list(trace = 1),link = list(over = "sd", fun = "log_link"),
fixed = list(mean = 160))
summary(theta_1)
有人可以指出第一段代码中的错误吗?