Print Statistically Significant MNL Coefficients

Share:

Description

By default, the summary for objects of class multinom is not particularly helpful. It still requires a lot of work on the part of the user to figure out which coefficients are significantly different from zero and which ones are not. mnlSig solves this problem by either flagging significant coefficients with an asterisk or only printing significant coefficients, leaving insignificant ones blank.

Usage

1
mnlSig(obj, pval=.05, two.sided=TRUE, flag.sig=TRUE, insig.blank=FALSE)

Arguments

obj

A model object of class multinom.

pval

The desired Type I error rate to identify coefficients as statistically significant.

two.sided

Logical indicating whether calculated p-values should be two-sided (if TRUE) or one-sided (if FALSE).

flag.sig

Logical indicating whether an asterisk should be placed beside coefficients which are significant at the pval level.

insig.blank

Logical indicating whether coefficients which are not significant at the pval level should be blank in the output.

Value

A data frame suitable for printing with the (optionally significance-flagged) coefficients from a multinomial logit model.

Author(s)

Dave Armstrong (UW-Milwaukee, Department of Political Science)

Examples

1
2
3
4
library(nnet)
data(france)
mnl.mod <- multinom(vote ~ retnat + male + retnat + lrself, data=france)
mnlSig(mnl.mod)

Want to suggest features or report bugs for rdrr.io? Use the GitHub issue tracker.