Title: | Output Results from 'rms' Models for Medical Journals |
---|---|
Description: | This takes the output of models performed using the 'rms' package and returns a dataframe with the results. This output is in the format required by medical journals. For example for cox regression models, the hazard ratios, their 95% confidence intervals, and p values will be provided. There are additional functions for outputs when the model included restricted cubic spline (RCS) terms. Models using imputed data (eg from aregimpute()) and fitted used fit.mult.impute() can also be processed. The dataframe which is returned can easily be turned into a publication ready table with packages 'flextable' and 'officer'. |
Authors: | Samuel Tingle [aut, cre], Georgios Kourounis [aut] |
Maintainer: | Samuel Tingle <[email protected]> |
License: | MIT + file LICENSE |
Version: | 0.1.2 |
Built: | 2025-03-07 11:25:23 UTC |
Source: | https://github.com/sjtingle/rmsmd |
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 )
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 )
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 |
Returns a dataframe of results. This can easily be outputted to word using packages such as flextable and officer.