| calibrate_rho | R Documentation |
For each calibration covariate W1[k], computes
\rho_k = \frac{\sqrt{\mathrm{Var}(\pi_{1,med,k} W_{1k})}}{
\sqrt{\mathrm{Var}(\pi_{1,med,-k}' W_{1,-k})}},
where pi(1,med) is the OLS coefficient on W1 from the regression of the treatment X on (W0, W1). Variances are computed on the W0-residualized variables, matching the construction in DMP (2026) equation (3.5).
calibrate_rho(formula, data, compare = NULL, nocompare = NULL, subset = NULL)
formula |
Two-sided formula: |
data |
A data.frame. |
compare |
Optional character vector of variables to use as the
comparison set. Defaults to all controls if neither |
nocompare |
Optional character vector of controls to exclude from the comparison set. |
subset |
Optional logical or integer vector indicating which rows
of |
These are point-identified reference values to compare the rxbar breakdown point against. See DMP (2026) section 3.4 and Table 4.
A data.frame with columns variable and rho (a percentage).
data(bfg2020)
bfg2020$statea <- factor(bfg2020$statea)
w1 <- c("log_area_2010", "lat", "lon", "temp_mean", "rain_mean",
"elev_mean", "d_coa", "d_riv", "d_lak", "ave_gyi")
form <- reformulate(c("tye_tfe890_500kNI_100_l6", w1, "statea"),
response = "avgrep2000to2016")
calibrate_rho(form, bfg2020, compare = w1)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.