ihw_diagnostic_plots: IHW diagnostic plots

View source: R/ihw.R

ihw_diagnostic_plotsR Documentation

IHW diagnostic plots

Description

Creates ggplot objects from an ihwResult object. The ggplot objects correspond to eight plots that assess if IHW is a reasonable method to use with the user-specified independent variable:

  • log p-value vs. independent variable ranking

  • log p-value density plots stratified by independent variable

  • p-value histograms stratified by independent variable

  • p-value cumulative distributions stratified by independent variable

  • mean IHW weight stratified by independent variable for multiple folds of the data

  • decision boundary relative to p-values and independent variable ranking

  • IHW adjusted p-values vs. raw p-values

  • IHW adjusted p-values vs. adjusted p-values using a different method This function is a convenient wrapper to quickly generate several diagnostic plots, but each plot can be generated separately using its respective function.

Usage

ihw_diagnostic_plots(
  ihw_data,
  num_strata = nlevels(IHW::groups_factor(ihw_data))
)

Arguments

ihw_data

An ihwResult object.

Details

Create diagnostic plots for independent hypothesis weighting.

Value

A list of ggplot objects.

See Also

ihw_pval_scatter, ihw_pval_ridges, ihw_stratified_pval_hist, ihw_pval_cdf, ihw_partitioned_pval_weights, ihw_pval_comparison, ihw_pval_decision_boundary,

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


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