Learn R Programming

textir (version 1.8-5)

plot.mnlm: Multinomial logistic regression Plots

Description

Plot function for mnlm objects, the output of multinomial logistic regression.

Usage

## S3 method for class 'mnlm':
plot(x, type=c("response","reduction"), covar=NULL, v=NULL, xlab=NULL, ylab=NULL, col=NULL, ...)

Arguments

x
An output object from the mnlm function.
type
Under "response", plot the fitted count expectations against observed non-zero counts. Under "reduction", we plot the fitted reduction $F\phi$.
covar
For type="reduction". The covariate direction to plot. Defaults to 1.
v
For type="reduction". Optional argument for the fitted reduction to be plotted against (if, e.g., you wish to plot against unnormalized response).
xlab
The x-axis label; will be automatically set if NULL.
ylab
The y-axis label; will be automatically set if NULL. For binary data, this becomes the legend title.
col
The color(s). Usage changes depending on plot type.
...
Additional plot arguments

Value

  • A fabulous plot.

Details

Option type="reduction" provides a plot of fitted and observed counts. Option type="reduction", plots the fitted reductions freq(counts)%*%loadings from inverse regression based on this mnlm fit.

References

Taddy (2011), Inverse Regression for Analysis of Sentiment in Text. http://arxiv.org/abs/1012.2098

See Also

mnlm, congress109, we8there