
Check negative-control validity across confounding scenarios
Source:R/sensitivity.R
nc_validity_check.RdFocuses on whether the negative-control estimators (COCA, PGC) hold as the controls' coverage of the confounder subspace drops and as the number of latent confounders grows. Reports their bias/RMSE alongside IV2SLS, and flags scenarios where identification is not credible — in particular when the number of latent confounders exceeds the effective number of valid controls (the proximal-inference completeness condition).
Arguments
- trained_gan
An
iconic_gan(orNULL).- coverage_grid
Coverage values to sweep. Default
c(0.2, 0.5, 0.8, 1).- k_grid
Numbers of confounders. Default
c(1, 2, 3).- conf_strength
Fixed confounding strength. Default 0.8.
- n_valid_controls
Number of distinct valid controls the design provides (for the identifiability flag). Default 1.
- n_iter, n_samples, n_features, nc_model, base_seed, n_cores
As in
gan_sensitivity().
Value
A list with summary (COCA/PGC/IV2SLS bias & RMSE per scenario,
with an identified flag) and verdict (short per-scenario diagnosis).