Takes an object of class smdi and styles it to a publication-ready gt table
smdi_style_gt.Rd
This function takes either an object of class smdi or data.frame or tibble as input and styles it to a publication-ready table based on the gt package. The output is of class gt and can take further gt-based arguments for customization.
Examples
library(smdi)
library(dplyr)
smdi_diagnose(
data = smdi_data,
covar = "egfr_cat",
model = "cox",
form_lhs = "Surv(eventtime, status)"
) %>%
smdi_style_gt()
Covariate
ASMD (min/max)1
p Hotelling1
AUC2
beta univariate (95% CI)3
beta (95% CI)3
p little: <.001, Abbreviations: ASMD = Median absolute standardized mean difference across all covariates, AUC = Area under the curve, beta = beta coefficient, CI = Confidence interval, max = Maximum, min = Minimum
1 Group 1 diagnostic: Differences in patient characteristics between patients with and without covariate
2 Group 2 diagnostic: Ability to predict missingness
3 Group 3 diagnostic: Assessment if missingness is associated with the outcome (univariate, adjusted)