Description Usage Arguments Value Note Author(s) Examples
Performs general formatting of effect tables from 'lm' suitable for basic printing. This includes merging estimates and confidence intervals, rounding, and optionally improving the display of factor and logical columns (using a colon and space, instead of just concatenating them).
1 2 3 4 5 | formatEffectTable(object
, level = 0.95
, estDigits = 2
, pDigits = 4
, cleanFactors = TRUE)
|
object |
A fitted model object from 'lm' |
level |
The confidence level to be returned |
estDigits |
The number of digits to be displayed for the estimate and confidence thresholds |
pDigits |
The number of digits to be displayed for the p-values |
cleanFactors |
Logical. Should the parameter names for factors be cleaned by separating the parameter from the value with a colon and a space, or not. (This option may lead to issues with merging if set to 'TRUE'.) |
A data.frame formatted ready to be displayed (e.g. by 'kable')
Note that "NA" values are silently dropped (they are not returned by 'summary.lm' in the coefficients table).
Mark Peterson
1 2 | irisMod <- lm(Sepal.Length ~ ., data = iris)
formatEffectTable(irisMod)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.