nestedLogit 0.4.1
- Added
RSQ()function to compute pseudo-R² measures (McFadden, Cox-Snell, Nagelkerke, and others) for each dichotomy sub-model and for the combined polytomous model
nestedLogit 0.4.0
CRAN release: 2026-03-06
This is a major release of the package adding considerable functionality for plotting and other features
- add
gatorsdata, food choice of alligators from Agresti - added a vignette illustrating use of the
ggeffectspackage for nestedLogit models - added an article showing use of the
easystatspackages for nestedLogit models [not yet a vignette, because work on this is continuing] - re-factored
predict.nestedLogit()and related to its own file for improved documentation - added ability for direct labels in
plot.nested-ci.R - Better description of nested logit and other models in README
- changed default colors for
plot.nestedLogit()to usescales::hue_pal()for consistency with ggplot - added
scaleargument toplot.nestedLogit()to allow plotting on the logit (log-odds) scale (scale = "logit") in addition to the default probability scale (scale = "prob") - added
as.tree()method for ASCII printing of the tree of nested dichotomies - Added vignette: “Other Examples of Nested Logit Models”
- In the
GSSdata, “l.t.highschool” changed to “<highschool” - Fixed problem with
ltynot passed tomatplot()inplot.nestedLogit() - In
plot.nestedLogit(), addedlabel.colargument (defaulting to the value ofcolin the call), to control the color of the curve label - Add example of plotting predictions for dichotomies to
ggeffectsvignette - Fixed problem in
ggeffectsvignette withpredict_response()for nestedLogit models; see ggeffects issue #671 - Fixed problem in
other-examplesvignette traced to tibble not handled well inplot.nestedLogit - Added
rhub::rhub_check()workflow.
nestedLogit 0.3.4
CRAN release: 2026-02-01
This is a minor release, improving documentation
- add link to
pkgdowndocumentation in DESCRIPTION - edit description of nested dichotomies in README to include examples and relations with other models
nestedLogit 0.3.3
- Fixed documentation error in GSS.R
-
createDichotomiesmethods now explicitly internal
nestedLogit 0.3.2
CRAN release: 2023-06-22
- new
Effectmethod for"nestedLogit"objects to create effect displays. - add Effect example to vignette
nestedLogit 0.3.1
- correct buglet in
as.data.framemethod whennewdatahas one column -
predict.nestedLogit()now includes thenewdatadata frame as an additional component (.data) in its result. Consequently, thenewdataargument is no longer required in theas.data.framemethod.
nestedLogit 0.3.0
CRAN release: 2023-05-30
This is a major enhancement to the package, adding computations of standard errors and confidence intervals to predicted probabilities and logits.
Enhancements
- The
predict()method now computes standard errors for probabilities and logits using the delta method. These can be obtained for either the response probabilities (and equivalent logits) or for the predicted log odds of the individual dichotomies. - A
confint()method for the result ofpredict()generates the corresponding confidence intervals. -
as.data.frame()methods for predicted values, either for the nested logit model or for the separate dichotomies converts these to a data frame in long format, handy for usingggplot(). - Added a
confint()method for predicted probabilities and logits - The
plot()method for"nestedLogit"objects now plots confidence intervals for predicted probabilities. - A new vignette, “standard-errors”, describes the mathematics behind the standard error calculations.
- An old vignette on plotting methods was completely re-written using the new
predict()methods and focusing exclusively on `ggplot2().
Other
- Added an example of
lobstr::tree()to print nested lists - Now use
fig.show="hold"to keeppar(op)with the code.
nestedLogit 0.2.0
- Now allow dichotomies to be specified by a nested (recursive) of binary splits of the categories [suggestion of Achim Zeileis]
- The model object is now of class “nestedLogit” for uniformity.
- A basic
plot()method now operational - Added a
linearHypothesis()method to give Wald tests for hypotheses about coefficients or their linear combinations. - Expanded vignette to illustrate some other methods.
- Added a
models()generic and method to extract separate models from the"nestedLogit"object - Added a
logLike()method, and through it, getsAIC()andBIC() - Reorganized documentation to separate nested hypothesis methods.
