| broomMethods {nestedLogit} | R Documentation |
Broom Related Methods
Description
These functions give compact summaries of a "nestedLogit" object
glanceConstruct a single row summaries for the dichotomies
"nestedLogit"model.tidySummarizes the terms in
"nestedLogit"model.
Usage
## S3 method for class 'nestedLogit'
glance(x, ...)
## S3 method for class 'nestedLogit'
tidy(x, ...)
Arguments
x |
an object of class |
... |
arguments to be passed down. |
Value
-
glancereturns atibblecontaining one row of fit statistics for each dichotomy, labeledresponse. Seeglancefor details. -
tidyreturns atibblecontaining coefficient estimates and test statistics for the combinations ofresponseandterm. Seetidyfor details.
See Also
Examples
data("Womenlf", package = "carData")
m <- nestedLogit(partic ~ hincome + children,
dichotomies = logits(work=dichotomy("not.work",
working=c("parttime", "fulltime")),
full=dichotomy("parttime", "fulltime")),
data=Womenlf)
# one-line summaries
broom::glance(m)
# coefficients and tests
broom::tidy(m)
[Package nestedLogit version 0.3.2 Index]