Factorplot is a way to summarize and plot information from categorical predictors from linear models and GLMs. It creates all simple contrasts and analytical standard errors for those contrasts.
Dave Armstrong Maintainer: Dave Armstrong <dave@quantoid.net>
Package: | factorplot |
Type: | Package |
Version: | 1.2.3 |
Date: | 2024-05-15 |
License: | GPL (>=2) |
LazyLoad: | yes |
After a linear model or GLM has been estimated, the factorplot command creates all pairwise differences among the levels (including the reference category) of the indicated factor as well as their associated standard errors to facilitate hypothesis testing directly. The print method prints the pairwise difference, standard error, p-value and Bonferroni-corrected p-value. The summary method prints the number of significant positive/negative pairwise differences. The plot method makes something akin to an upper-triangular levelplot that indicates whether differences are positive/negative and statistically significant.
Armstrong, David A., II. 2013. factorplot: Improving Presentation of Simple Contrasts in Generalized Linear Models. The R Journal 5(2): 4--15.