lm_with_std | R Documentation |
This function creates a summary table for lm models (including mice::mira objects containing lm-models) that shows a standardised and non-standardised version of the model side-by-side. Several pairs of such models can be compared side-by-side.
lm_with_std( mod, std_mod, conf_level = 0.95, fmt = "%.2f", statistic_vertical = FALSE, filename = NULL, model_names = NULL, show_nimp = FALSE, R2_change = FALSE, notes = list(NULL), apa_style = TRUE, stars = std_stars_pad, ... )
mod |
A lm-model/mira object of lm models, with variables not standardised (or a list of such models) |
std_mod |
A lm-model/mira object of lm models, with standardised variables. Can be
created with |
conf_level |
Confidence level to use for confidence intervals, defaults to .95 |
fmt |
determines how to format numeric values
|
statistic_vertical |
Should standard errors and CIs be shown below coefficients? Defaults to horizontal layout |
filename |
the file name to create on disk. Include '.html' extension to best preserve formatting (see gt::gtsave for details) |
model_names |
If several pairs of models are to be plotted side by side, indicate the label for each *pair* here |
show_nimp |
Logical. If mira objects are passed, this determines whether the number of imputations will be reported as a model statistic |
R2_change |
Logical. Report R2 change and F-test to compare models. Only implemented for comparing two pairs of models. |
notes |
List of notes to append to bottom of table. An explanation of significance stars is automatically added. If the std models were run with a helper function in this package, a note regarding the standardisation is also automatically added. |
apa_style |
Logical, should APA-style formatting be applied |
stars |
Named vector of significance stars and their thresholds, check 'rNuggets:::std_stars_pad' for default. |
... |
Arguments passed on to
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.