mnlfit: Fit Statistics and Specification Test for Multinomial...

mnlfitR Documentation

Fit Statistics and Specification Test for Multinomial Logistic Regression

Description

Provides fit statistics (pseudo R-squared values) and the Fagerland, Hosmer and Bonfi (2008) specification test for Multinomial Logistic Regression models.

Usage

mnlfit(obj, permute = FALSE)

Arguments

obj

An object of class multinom

permute

Logical indicating whether to check all base categories for the Fagerland et. al. specification test.

Value

A list with elements:

result

Fit statistics.

permres

The results of the base category permutation exercise.

Author(s)

Dave Armstrong

References

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.

Examples


library(nnet)
data(france)
mnl.mod <- multinom(vote ~ age + male + retnat + lrself, data=france)
mnlfit(mnl.mod)


davidaarmstrong/damisc documentation built on Oct. 1, 2023, 3:05 p.m.