Debian Codegraph @

man/tidy.mlogit.Rd

raw
1 % Generated by roxygen2: do not edit by hand
2 % Please edit documentation in R/mlogit.R
3 \name{tidy.mlogit}
4 \alias{tidy.mlogit}
5 \alias{mlogit_tidiers}
6 \title{Tidying methods for logit models}
7 \usage{
8 \method{tidy}{mlogit}(x, conf.int = FALSE, conf.level = 0.95, ...)
9 }
10 \arguments{
11 \item{x}{an object returned from \code{\link[mlogit:mlogit]{mlogit::mlogit()}}.}
12
13 \item{conf.int}{Logical indicating whether or not to include a confidence
14 interval in the tidied output. Defaults to \code{FALSE}.}
15
16 \item{conf.level}{The confidence level to use for the confidence interval
17 if \code{conf.int = TRUE}. Must be strictly greater than 0 and less than 1.
18 Defaults to 0.95, which corresponds to a 95 percent confidence interval.}
19
20 \item{...}{Additional arguments. Not used. Needed to match generic
21 signature only. \strong{Cautionary note:} Misspelled arguments will be
22 absorbed in \code{...}, where they will be ignored. If the misspelled
23 argument has a default value, the default value will be used.
24 For example, if you pass \code{conf.lvel = 0.9}, all computation will
25 proceed using \code{conf.level = 0.95}. Two exceptions here are:
26 \itemize{
27 \item \code{tidy()} methods will warn when supplied an \code{exponentiate} argument if
28 it will be ignored.
29 \item \code{augment()} methods will warn when supplied a \code{newdata} argument if it
30 will be ignored.
31 }}
32 }
33 \description{
34 These methods tidy the coefficients of mnl and nl models generated
35 by the functions of the \code{mlogit} package.
36 }
37 \examples{
38 \dontshow{if (rlang::is_installed("mlogit")) withAutoprint(\{ # examplesIf}
39
40 # load libraries for models and data
41 library(mlogit)
42
43 data("Fishing", package = "mlogit")
44 Fish <- dfidx(Fishing, varying = 2:9, shape = "wide", choice = "mode")
45
46 # fit model
47 m <- mlogit(mode ~ price + catch | income, data = Fish)
48
49 # summarize model fit with tidiers
50 tidy(m)
51 augment(m)
52 glance(m)
53 \dontshow{\}) # examplesIf}
54 }
55 \seealso{
56 \code{\link[=tidy]{tidy()}}, \code{\link[mlogit:mlogit]{mlogit::mlogit()}}
57
58 Other mlogit tidiers:
59 \code{\link{augment.mlogit}()},
60 \code{\link{glance.mlogit}()}
61 }
62 \concept{mlogit tidiers}
63 \value{
64 A \code{\link[tibble:tibble]{tibble::tibble()}} with columns:
65 \item{conf.high}{Upper bound on the confidence interval for the estimate.}
66 \item{conf.low}{Lower bound on the confidence interval for the estimate.}
67 \item{estimate}{The estimated value of the regression term.}
68 \item{p.value}{The two-sided p-value associated with the observed statistic.}
69 \item{statistic}{The value of a T-statistic to use in a hypothesis that the regression term is non-zero.}
70 \item{std.error}{The standard error of the regression term.}
71 \item{term}{The name of the regression term.}
72
73 }