Learn R Programming

⚠️There's a newer version (2.0-5) of this package.Take me there.

textir v2.0

This is the textir package for R, implementing the MNIR routines of "multinomial inverse regression for text analysis". It also provides a minimalist partial least squares algorithm.

The cran page is at http://www.cran.r-project.org/web/packages/textir/index.html.

Versions 2+ make use of the distrom package, for DMR as in "distributed multinomial regression". These algorithms differ from those in the original MNIR in significant ways: penalties are chosen from full regularization paths (instead of being fixed), via the gamma lasso algorithm as implemented in gamlr (instead of exact log penalties), in parallel for independent Poisson log regressions (instead of jointly for a full multinomial likelihood). It also uses replaces the slam library for sparse simple triplet matrices with the more common Matrix library.

The last pre-2.0 version of textir, matching the implementation in the original MNIR paper, is textir_1.8-8.

Copy Link

Version

Install

install.packages('textir')

Monthly Downloads

305

Version

2.0-4

License

GPL-3

Maintainer

Matt Taddy

Last Published

August 18th, 2015

Functions in textir (2.0-4)

tfidf

tf-idf
congress109

Ideology in Political Speeches
we8there

On-Line Restaurant Reviews
corr

2nd momments of sparse matrices
mnlm

Multinomial Inverse Regression (MNIR)
pls

Partial Least Squares