Debian Codegraph @

man/tidy.mle2.Rd

raw
1 % Generated by roxygen2: do not edit by hand
2 % Please edit documentation in R/bbmle.R
3 \name{tidy.mle2}
4 \alias{tidy.mle2}
5 \alias{mle2_tidiers}
6 \alias{bbmle_tidiers}
7 \title{Tidy a(n) mle2 object}
8 \usage{
9 \method{tidy}{mle2}(x, conf.int = FALSE, conf.level = 0.95, ...)
10 }
11 \arguments{
12 \item{x}{An \code{mle2} object created by a call to \code{\link[bbmle:mle2]{bbmle::mle2()}}.}
13
14 \item{conf.int}{Logical indicating whether or not to include a confidence
15 interval in the tidied output. Defaults to \code{FALSE}.}
16
17 \item{conf.level}{The confidence level to use for the confidence interval
18 if \code{conf.int = TRUE}. Must be strictly greater than 0 and less than 1.
19 Defaults to 0.95, which corresponds to a 95 percent confidence interval.}
20
21 \item{...}{Additional arguments. Not used. Needed to match generic
22 signature only. \strong{Cautionary note:} Misspelled arguments will be
23 absorbed in \code{...}, where they will be ignored. If the misspelled
24 argument has a default value, the default value will be used.
25 For example, if you pass \code{conf.lvel = 0.9}, all computation will
26 proceed using \code{conf.level = 0.95}. Two exceptions here are:
27 \itemize{
28 \item \code{tidy()} methods will warn when supplied an \code{exponentiate} argument if
29 it will be ignored.
30 \item \code{augment()} methods will warn when supplied a \code{newdata} argument if it
31 will be ignored.
32 }}
33 }
34 \description{
35 Tidy summarizes information about the components of a model.
36 A model component might be a single term in a regression, a single
37 hypothesis, a cluster, or a class. Exactly what tidy considers to be a
38 model component varies across models but is usually self-evident.
39 If a model has several distinct types of components, you will need to
40 specify which components to return.
41 }
42 \examples{
43 \dontshow{if (rlang::is_installed("bbmle")) withAutoprint(\{ # examplesIf}
44
45 # load libraries for models and data
46 library(bbmle)
47
48 # generate data
49 x <- 0:10
50 y <- c(26, 17, 13, 12, 20, 5, 9, 8, 5, 4, 8)
51 d <- data.frame(x, y)
52
53 # fit model
54 fit <- mle2(y ~ dpois(lambda = ymean),
55 start = list(ymean = mean(y)), data = d
56 )
57
58 # summarize model fit with tidiers
59 tidy(fit)
60 \dontshow{\}) # examplesIf}
61 }
62 \seealso{
63 \code{\link[=tidy]{tidy()}}, \code{\link[bbmle:mle2]{bbmle::mle2()}}, \code{\link[=tidy_optim]{tidy_optim()}}
64 }
65 \value{
66 A \code{\link[tibble:tibble]{tibble::tibble()}} with columns:
67 \item{conf.high}{Upper bound on the confidence interval for the estimate.}
68 \item{conf.low}{Lower bound on the confidence interval for the estimate.}
69 \item{estimate}{The estimated value of the regression term.}
70 \item{p.value}{The two-sided p-value associated with the observed statistic.}
71 \item{statistic}{The value of a T-statistic to use in a hypothesis that the regression term is non-zero.}
72 \item{std.error}{The standard error of the regression term.}
73 \item{term}{The name of the regression term.}
74
75 }