# MLE estimation (default)
set.seed(123)
x <- rweibull(100, shape = 2.5, scale = 1.5)
fit1 <- fit_dist(x, dist = "weibull")
print(fit1)
# MPS estimation with Cheng-Amin ties correction
fit2 <- fit_dist(x, dist = "weibull", method = "mps")
# L-Moments estimation (under development)
# fit3 <- fit_dist(x, dist = "weibull", method = "lm")
# Method of Moments
fit4 <- fit_dist(x, dist = "weibull", method = "mom")
# Compare fits
cat("AIC - MLE:", fit1$aic, "MPS:", fit2$aic, "\n")
Run the code above in your browser using DataLab