Skip to contents

Check positivity

Diagnose positivity across every applicable method and work with the resulting container object.

check_positivity()
Diagnose positivity across the applicable methods
positivity_check()
A container for a set of positivity diagnostics
sniff_violations()
Report what a set of diagnostics found

Diagnostics

Individual positivity and extrapolation diagnostics, including their time-varying sequence variants.

check_edp()
Diagnose positivity with effective data points
check_port()
Locate positivity-violating subgroups with the PoRT algorithm
check_port_seq()
Locate sequential positivity violations with the sPoRT algorithm
check_hat_values()
Diagnose positivity for continuous exposures with hat values
check_extrapolation()
Diagnose extrapolation for binary exposures with Gower distances and the convex hull
check_eta_bias()
Diagnose positivity bias with the parametric bootstrap (ETA.Bias)
check_hdr()
Diagnose positivity for continuous exposures with HDR non-overlap
check_hdr_seq()
Diagnose sequential positivity for continuous exposures with HDR non-overlap
check_density_ratios()
Summarize density ratios for positivity diagnosis

Plots

Autoplot methods that visualize each diagnostic result.

autoplot.positivity_check plot.positivity_check
Plot the diagnostics a positivity check holds
autoplot.edp_result plot.edp_result
Plot an effective-data-points diagnostic
autoplot.port_result plot.port_result
Plot a PoRT subgroup diagnostic
autoplot.hat_values_result plot.hat_values_result
Plot a hat-value diagnostic
autoplot.extrapolation_result plot.extrapolation_result
Plot an extrapolation diagnostic
autoplot.eta_bias_result plot.eta_bias_result
Plot an ETA.Bias diagnostic
autoplot.hdr_result plot.hdr_result
Plot an HDR non-overlap diagnostic
autoplot.density_ratios_result plot.density_ratios_result
Plot a density-ratio diagnostic

Density estimators

Conditional-density estimators used by the highest density region diagnostic.

hdr_density_normal()
The default normal conditional-density estimator for HDR non-overlap
new_hdr_density()
Construct a conditional-density estimator for the HDR diagnostic

Datasets

Example data with planted positivity violations.

pos_violations
Binary-exposure data with planted positivity violations
pos_violations_long
Longitudinal continuous-exposure data with a time-2 support gap

Extending positively

Developer-facing classes for building new diagnostics.

positivity_diagnostic
The abstract parent class for positivity diagnostics