ihw_stratified_pval_hist: Stratified p-value histograms

View source: R/ihw.R

ihw_stratified_pval_histR Documentation

Stratified p-value histograms

Description

Plot p-value histograms for IHW variable strata.

Usage

ihw_stratified_pval_hist(
  ihw_data,
  num_strata = nlevels(IHW::groups_factor(ihw_data)),
  fill_color = "gray20",
  fill_alpha = 1
)

Arguments

ihw_data

An ihwResult object.

num_strata

Number of strata into which the independent variable is divided.

fill_color

Fill color for area under density distributions.

fill_alpha

Fill color alpha value for area under density distributions.

Details

This plot partitions the p-values into equal sized strata of the IHW variable to generate multiple p-value histograms. For an informative IHW variable, the larger the stratum ID the more skew there should be towards enrichment of smaller p-values.

Value

A ggplot object.

See Also

Other ihw: ihw_diagnostic_plots(), ihw_partitioned_pval_weights(), ihw_pval_cdf(), ihw_pval_comparison(), ihw_pval_decision_boundary(), ihw_pval_ridges(), ihw_pval_scatter()


bryancquach/omixjutsu documentation built on Jan. 29, 2023, 3:47 p.m.