Functions to use in specific table settings

tbl_likert() add_n(<tbl_likert>) add_continuous_stat()

Likert Summary Table

add_variable_grouping()

Group variable summaries

add_sparkline()

Add Sparkline Figure

add_inline_forest_plot()

Add inline forest plot

theme_gtsummary_msk()

Set custom gtsummary themes

style_tbl_compact()

Compact Table Styling

logistic_reg_adj_diff()

Logistic regression adjusted differences

as_ggplot()

Convert gt/gtsummary table to ggplot

as_forest_plot()

Create Forest Plot

bold_italicize_group_labels()

Set bold and/or italic style for groups labels in stacked tables

Project Start-up Functions

create_bst_project()

Start a New Biostatistics project

use_bst_file() use_bst_gitignore() use_bst_readme() use_bst_setup() use_bst_analysis() use_bst_report()

Write a template file

set_derived_variables()

Apply variable labels to data frame

Utility Functions

use_bst_rstudio_prefs()

Use Biostatistics RStudio Preferences

here_data() path_data() get_data_date()

Find your data folder

cite_r()

Cite R and R Packages

fix_database_error()

Function to make database fixes after import

High Performance Computing Cluster

hpcc_get_arg() hpcc_get_seq_number()

HPCC Functions

rm_logs()

Deletes log files created by Rscript on the Linux cluster

Data Manipulation

count_map()

Check variable derivations

assign_timepoint()

Assign a time point to a long data set with multiple measures

clean_mrn()

Check and Format MRNs

count_na()

Assess pattern of missing data

get_mode()

Calculates the mode(s) of a set of values

list_labels()

Get variable labels and store in named list

add_splines()

Add spline terms to a data frame

egfr_ckdepi() egfr_mdrd()

Calculate eGFR

use_varnames_as_labels()

Use Variable Names as Labels

Other Functions

ggcalibration()

Model Calibration Plot

add_cuminc_risktable()

Add risk table to cuminc() plot

followup_time()

Report Follow-up Among Censored Obs

auc_density() auc_histogram()

Calculate exact AUCs based on the distribution of risk in a population

Data Objects

trial

Results from a simulated study of two chemotherapy agents: Drug A and Drug B

project_templates

Biostatistics project templates