mle2_tidiers {broom} | R Documentation |
Tidy mle2 objects from the bbmle package.
## S3 method for class 'mle2' tidy(x, conf.int = FALSE, conf.level = 0.95, ...)
x |
An "mle2" object |
conf.int |
Whether to add |
conf.level |
Confidence level to use for interval |
... |
Extra arguments, not used |
if (require("bbmle", quietly = TRUE)) { x <- 0:10 y <- c(26, 17, 13, 12, 20, 5, 9, 8, 5, 4, 8) d <- data.frame(x,y) fit <- mle2(y ~ dpois(lambda = ymean), start = list(ymean = mean(y)), data = d) tidy(fit) }