mnlfit | R Documentation |
Provides fit statistics (pseudo R-squared values) and the Fagerland, Hosmer and Bonfi (2008) specification test for Multinomial Logistic Regression models.
mnlfit(obj, permute = FALSE)
obj |
An object of class |
permute |
Logical indicating whether to check all base categories for the Fagerland et. al. specification test. |
A list with elements:
result |
Fit statistics. |
permres |
The results of the base category permutation exercise. |
Dave Armstrong
Fagerland M. W., D. W. Hosmer and A. M. Bonfi. 2008. ‘Multinomial goodness-of-fit tests for logistic regression models.’ Statistics in Medicine. 27(21): 4238-4253.
library(nnet)
data(france)
mnl.mod <- multinom(vote ~ age + male + retnat + lrself, data=france)
mnlfit(mnl.mod)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.