View source: R/modelsummary_rms.R
modelsummary_rms | R Documentation |
The modelsummary_rms
function processes the output from models fitted using the rms
package and generates a summarized dataframe of the results.
This summary is tailored for publication in medical journals, presenting effect estimates, confidence intervals, and p-values.
modelsummary_rms(
modelfit,
combine_ci = TRUE,
round_dp_coef = 3,
round_dp_p = 3,
rcs_overallp = TRUE,
hide_rcs_coef = TRUE,
exp_coef = NULL,
fullmodel = FALSE,
MI_lrt = FALSE
)
modelfit |
The output from an rms model. |
combine_ci |
If |
round_dp_coef |
Specifies the number of decimal places to display for the effect estimates. Default is |
round_dp_p |
Specifies the number of decimal places to display for P values. Default is |
rcs_overallp |
If |
hide_rcs_coef |
If |
exp_coef |
If |
fullmodel |
If |
MI_lrt |
If |
Returns a dataframe of results. This can easily be outputted to word using packages such as flextable and officer.
# For detailed examples please see the provided vignettes
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.