report_polr_with_std | R Documentation |
This function creates a summary table for polr models (including mice::mira objects containing polr-models) that shows a standardized and non-standardized version of the model side-by-side. Several pairs of such models can be compared side-by-side.
report_polr_with_std(
mod,
mod_std,
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 standardized (or a list of such models) |
mod_std |
A polr-model/mira object of polr models, with standardized predictor variables (or a list of such models) |
OR |
Logical. Should 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 |
how to format numeric values: integer, user-supplied function, or
|
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 |
... |
Arguments passed on to
|
The R2 shown is the maximum likelihood pseudo R2 returned by pR2.
library(MASS)
pov_att <- polr(poverty ~ religion + age + gender, data = WVS)
pov_att_std <- polr_std(poverty ~ religion + age + gender, data = WVS)
report_polr_with_std(pov_att, pov_att_std, coef_omit = "\\|")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.