PolyGenius
Contents

visualize$evaluate$stratification

Score-band stratification plot

Plots evaluate$stratification()'s per-band contrast -- an odds ratio for a binary outcome, a mean difference for a continuous one -- by band, one point-and-interval series per model, faceted by outcome (columns) and stratum (rows). A reference line is drawn at 1 for an odds ratio and 0 for a mean difference. Band rows (the reference band and the unadjusted rate/mean) are not drawn; only the covariate-adjusted contrasts are.

Usage

visualize.evaluate.stratification(results, theme = c("polygenius", "none"))

Arguments

ArgumentDescription
resultsA [PolyGeniusEvaluation](/reference/evaluate/) of evaluate$stratification().
themeOne of "polygenius" (default), "none". Plot theme. "none" gives a bare theme_minimal() to style yourself; palette colors are applied either way.

Value

A ggplot.

Examples

strat <- evaluate$stratification(data, outcomes = case, covariates = c(age, sex))
visualize$evaluate$stratification(strat)

See Also

Aliases: visualize.evaluate.stratification, visualize$evaluate$stratification, visualize_evaluate_stratification