Skip to contents

Import and names

read_cohort_csv()
Read a "French" CSV file
path_resolve_nfc()
Resolve a path whose accented characters are stored differently on disk
clean_colnames()
Clean column names
rename_with_map()
Rename columns with a named vector
catalog_vars()
Catalogue of the variables, by block

Visits

visit_add_deltas()
Change between two visits
visit_map_suffix()
Map unusual visit suffixes to the <ROOT>_<VISIT> convention
visit_root() visit_swap()
Visit suffixes of variable names
visit_to_long()
Wide <ROOT>_<VISIT> data to long format
combine_bilateral()
Mean of the left and right sides of a bilateral measure

Outliers

outlier_detect() outlier_mask()
Table of outliers and masking
outlier_flag_mad() outlier_flag_iqr()
Robust outlier rules

Transformations

transform_boxcox() transform_boxcox_resid() transform_apply_resid()
Box-Cox decision with car's documented rule
transform_compare() transform_choose() transform_propagate() transform_apply()
Compare, choose and apply transformations

Description

describe_cohort()
Overview table of a cohort
describe_normality()
Normality of each variable
na_summary() na_complete_cases()
Missing values per variable and complete cases per variable set
cor_partial_spearman() cor_matrix_test()
Correlations
pca_compute() pca_scores_join()
Principal component analysis
score_composite()
Composite score per domain

Figures

plot_cor_heatmap() plot_cor_cross()
Correlation heatmaps
plot_delta_vs_baseline()
Change versus baseline value
plot_distribution()
Distribution of one or several variables
plot_distribution_overview()
Overlaid standardised densities of a block of variables
plot_forest()
Annotated forest plot
plot_na_map()
Missing-data map
plot_paired_visits()
Paired visits: one line per subject between two visits
plot_pca_scree() plot_pca_ind() plot_pca_var() plot_pca_contrib() plot_pca_distribution()
Figures of a principal component analysis
plot_radar()
Radar plot comparing groups on several variables
plot_trajectories() plot_trajectory_grid()
Individual trajectories across visits (spaghetti plot)
theme_pub()
Publication theme for ggplot2
theme_rotate_x()
Rotated x-axis labels that stay attached to their tick
pal_okabe_ito() pal_levels()
Colour palettes

Formatting and labels

fmt_sci() fmt_num() fmt_p() fmt_stars()
Format numbers and p-values for figures and tables
label_get() label_expand()
Readable labels of variables

Tables and Quarto

gt_pub()
Publication table with gt
gt_sig_colors()
Colours of significance highlighting
gt_signif() gt_highlight_rows() gt_signif_legend()
Highlight significant results in gt tables
dt_export()
Interactive table with export buttons
qmd_tabset() qmd_callout_raw()
Quarto output from a results: asis chunk

Data

cohort_sim
Simulated clinical cohort with two visits