| calibrate_partial_r2 | R Documentation |
For each W1[k], computes
R^2_{W_{1k} \sim W_{1,-k} \cdot W_0}
i.e. the R-squared of regressing the W0-residualized W1[k] on the
W0-residualized W1[-k]. Matches Table 3 in DMP (2026): a quick read
on how collinear the comparison controls are.
calibrate_partial_r2(
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 |
A data.frame with columns variable and R2.
data(bfg2020)
calibrate_partial_r2(
avgrep2000to2016 ~ tye_tfe890_500kNI_100_l6 +
log_area_2010 + lat + lon,
data = bfg2020
)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.