I am trying to find the MLE estimate of alpha of a beta distribution given beta = 1. I tried using maxlogL from the estimationtools package but 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)
For the normal distributions the following computations do give me an estimate of 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)
Could someone point out the mistake in the first piece of code?