mnlSig: Print Statistically Significant MNL Coefficients

mnlSigR Documentation

Print Statistically Significant MNL Coefficients

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

mnlSig(
  obj,
  pval = 0.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

Examples


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


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