cat2Table | R Documentation |
This function makes a table of fitted values and confidence intervals for all of the combinations of two categorical variables in an interaction.
cat2Table(eff.obj, digits = 2, rownames = NULL, colnames = NULL)
eff.obj |
An object generated by |
digits |
Number of digits of the fitted values and confidence intervals to print. |
rownames |
An optional vector of row names for the table, if
|
colnames |
An optional vector of column names for the table, if
|
A matrix of fitted values and confidence intervals
Dave Armstrong
library(effects)
data(Duncan, package="carData")
Duncan$inc.cat <- cut(Duncan$income, 3)
mod <- lm(prestige ~ inc.cat*type + income, data=Duncan)
e1 <- effect("inc.cat*type", mod)
cat2Table(e1)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.