polr_with_std | R Documentation |
This function creates a summary table for polr models (including mice::mira objects containing polr-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.
polr_with_std( mod, std_mod, OR = TRUE, conf_level = 0.95, fmt = "%.2f", statistic_vertical = FALSE, filename = NULL, model_names = NULL, show_nimp = FALSE, notes = list(), apa_style = TRUE, stars = std_stars_pad, ... )
mod |
A polr-model/mira object of polr models, with variables not standardised (or a list of such models) |
std_mod |
A polr-model/mira object of polr models, with standardised predictor variables (or a list of such models) |
OR |
Logical. Shoulds odds ratios be shown instead of typical coefficients. If TRUE, estimates are exponentiated |
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 |
notes |
List of notes to append to bottom of table. An explanation of significance stars is automatically added. A note is also added stating that dummy variables were not scaled in standardization. If you approached standardisation differently, that should be removed. |
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.