Skip to contents

Screen

Is a candidate fit to serve as a shadow variable?

shadow_screen()
Screen candidate shadow variables
plot(<shadow_screen>)
Relevance against exclusion violation
autoplot(<shadow_screen>)
Relevance against exclusion violation, with ggplot2
screen_classes()
Classes for a numeric characteristic, cut only between distinct values

Scan of a rate

Sharp identified set for the rate of a binary outcome under a bound on the ratio of response propensities, with known inputs.

sharp_scan() as.data.frame(<sharp_scan>)
Sharp identified set for a binary outcome under a bounded ratio of response propensities
plot(<sharp_scan>)
Sensitivity curve of a scan
autoplot(<sharp_scan>)
Sensitivity curve of a scan, with ggplot2

Scan of a mean

The same for the mean of any outcome, from a grid of conditional quantiles.

sharp_scan_mean()
Sharp identified set for a mean under a bounded ratio of response propensities
quantile_grid()
Quantile grid for the mean scan

Distribution function and quantiles

The scan at each value of a grid, pointwise in t, and bounds for quantiles.

sharp_scan_cdf() quantile(<sharp_scan_cdf>) plot(<sharp_scan_cdf>)
Debiased scan for the distribution function and its quantiles
autoplot(<sharp_scan_cdf>)
Distribution-function scan, with ggplot2
crossfit_cdf()
Cross-fitted inputs for the distribution-function scan

Sampling error

Debiased estimates and confidence sets from cross-fitted inputs.

sharp_scan_ci()
Confidence set for the binary scan, by debiased estimation
sharp_scan_mean_ci()
Debiased scan for the mean of a non-binary outcome, with a confidence set
crossfit_inputs()
Cross-fitted scan inputs for any learner
crossfit_quantiles()
Cross-fitted quantile grids for the debiased mean scan

Comparing two groups

sharp_scan_contrast()
Debiased scan for the difference between two portfolios
sharp_scan_mean_contrast()
Debiased scan for the difference of two portfolio means

Simulated data

simulate_shadow() obs_quantiles()
Simulate a nonignorably selected outcome with known truth
scan_inputs()
Extract the two scan inputs from fitted models

Package

nonignorable nonignorable-package
nonignorable: shadow-variable screens and sharp sensitivity scans