Package: nestedLogit 0.4.1

nestedLogit: Nested Dichotomy Logistic Regression Models

Provides functions for specifying and fitting nested dichotomy logistic regression models for a multi-category response and methods for summarising and plotting those models. Nested dichotomies are statistically independent, and hence provide an additive decomposition of tests for the overall 'polytomous' response. When the dichotomies make sense substantively, this method can be a simpler alternative to the standard 'multinomial' logistic model which compares response categories to a reference level. See: J. Fox (2016), "Applied Regression Analysis and Generalized Linear Models", 3rd Ed., ISBN 1452205663.

Authors:John Fox [aut], Michael Friendly [aut, cre], Achim Zeileis [ctb]

nestedLogit_0.4.1.tar.gz
nestedLogit_0.4.1.zip(r-4.6)nestedLogit_0.4.1.zip(r-4.5)nestedLogit_0.4.1.zip(r-4.4)
nestedLogit_0.4.1.tgz(r-4.6-any)nestedLogit_0.4.1.tgz(r-4.5-any)
nestedLogit_0.4.1.tar.gz(r-4.6-any)nestedLogit_0.4.1.tar.gz(r-4.5-any)
nestedLogit_0.4.1.tgz(r-4.5-emscripten)
nestedLogit.pdf |nestedLogit.html
nestedLogit/json (API)
NEWS

# Install 'nestedLogit' in R:
install.packages('nestedLogit', repos = c('https://friendly.r-universe.dev', 'https://cloud.r-project.org'))

Bug tracker:https://github.com/friendly/nestedlogit/issues

Pkgdown/docs site:https://friendly.github.io

Datasets:
  • GSS - Data From the U.S. General Social Survey 1972-2016
  • HealthInsurance - Choice of Health Insurance Product
  • gators - Alligator Food Choice

On CRAN:

Conda:

logistic-regressionmultinomial-logistic-regressionpolytomous-variables

7.36 score 10 stars 53 scripts 5.7k downloads 8 exports 75 dependencies

Last updated from:7fa607e6d8. Checks:9 OK. Indexed: yes.

TargetResultTimeFilesLog
linux-devel-x86_64OK222
source / vignettesOK269
linux-release-x86_64OK198
macos-devel-arm64OK110
macos-release-arm64OK114
windows-develOK134
windows-releaseOK128
windows-oldrelOK165
wasm-releaseOK160

Exports:as.dichotomiesas.treecontinuationLogitsdichotomylogitsmodelsnestedLogitRSQ

Dependencies:abindbackportsbootbroomcarcarDataclicolorspacecowplotcpp11DBIDerivdoBydplyreffectsestimabilityfarverforecastFormulafracdiffgenericsggplot2gluegtableinsightisobandlabelinglatticelifecyclelme4lmtestmagrittrMASSMatrixMatrixModelsmgcvmicrobenchmarkminqamitoolsmodelrnlmenloptrnnetnumDerivpbkrtestpillarpkgconfigpurrrquantregR6rbibutilsRColorBrewerRcppRcppArmadilloRcppEigenRdpackreformulasrlangS7scalesSparseMstringistringrsurveysurvivaltibbletidyrtidyselecttimeDateurcautf8vctrsviridisLitewithrzoo

Nested-dichotomies logistic regression models

Rendered fromnestedLogit.Rmdusingknitr::rmarkdownon Mar 07 2026.

Last update: 2026-02-01
Started: 2023-05-08

Other Examples of Nested Logit Models

Rendered fromother-examples.Rmdusingknitr::rmarkdownon Mar 07 2026.

Last update: 2026-03-05
Started: 2026-03-02

Plotting nestedLogit models with ggplot2

Rendered fromplotting-ggplot.Rmdusingknitr::rmarkdownon Mar 07 2026.

Last update: 2024-06-03
Started: 2023-05-28

Standard Errors of Fitted Category Probabilities by the Delta Method for the Nested Logit Model

Rendered fromstandard-errors.Rmdusingknitr::rmarkdownon Mar 07 2026.

Last update: 2023-05-30
Started: 2023-05-27

Using ggeffects with nestedLogit models

Rendered fromggeffects.Rmdusingknitr::rmarkdownon Mar 07 2026.

Last update: 2026-03-05
Started: 2026-03-03

Readme and manuals

Help Manual

Help pageTopics
Convert a Predicted Objects to a data.frameas.data.frame.predictNestedLogit
Display the Tree Structure of Nested Dichotomiesas.tree as.tree.continuationDichotomies as.tree.dichotomies
Broom Related MethodsbroomMethods glance.nestedLogit tidy.nestedLogit
Effect Displays for Nested Logit ModelsEffect.nestedLogit
Alligator Food Choicegators
Data From the U.S. General Social Survey 1972-2016GSS
Choice of Health Insurance ProductHealthInsurance
Extract Binary Logit Models from a 'nestedLogit' Objectmodels models.nestedLogit
Hypothesis-Testing and Related Methods for '"nestedLogit"' ObjectsAnova.nestedLogit anova.nestedLogit linearHypothesis.nestedLogit logLik.nestedLogit nestedHypotheses print.Anova.nestedLogit print.anova.nestedLogit
Binary Logit Models for Nested DichotomiescontinuationLogits dichotomy logits nestedLogit
Methods for '"nestedLogit"' and Related Objectsas.character.dichotomies as.dichotomies as.dichotomies.matrix as.matrix.continuationDichotomies as.matrix.dichotomies coef.nestedLogit nestedMethods print.dichotomies print.nestedLogit print.summary.nestedLogit summary.nestedLogit update.nestedLogit vcov.nestedLogit
Plotting Nested Logit Modelsplot.nestedLogit
Predicted Probabilities and Logits for '"nestedLogit"' Modelsconfint.predictNestedLogit fitted.nestedLogit predict.nestedLogit print.predictDichotomies print.predictNestedLogit
Pseudo-R² Measures for Nested Logit Modelsprint.RSQ.nestedLogit RSQ RSQ.nestedLogit