Tutorials › Econometrics (Graduate) › Partial-R-Squared Sensitivity for Regression Effects

Partial Identification and Sensitivity · Tutorial 821 of 952

Partial-R-Squared Sensitivity for Regression Effects

Use partial R-squared values to assess how strongly an omitted confounder would need to relate to treatment and outcome to change a regression-adjusted effect.

Advanced 12 min read

What You'll Learn

  • Define treatment and outcome partial R-squared values for an omitted confounder.
  • Calculate a bound on omitted-variable bias in standard-error units.
  • Translate a bias bound into the treatment-effect units of a regression.
  • Convert an auxiliary regression F statistic into a partial R-squared value.
  • Calculate and interpret an equal-strength robustness value for reducing an estimate to zero.
  • Distinguish sensitivity calculations from causal identification and inferential uncertainty.

Why Measure Confounder Strength?

A regression-adjusted treatment effect can depend on which covariates were measured and included. When a relevant confounder is unobserved, the treatment coefficient in the fitted regression may differ from the coefficient that would have been obtained had that confounder been included. Sensitivity analysis asks how strong the omitted variable's relationships with treatment and outcome would have to be to materially change the result.

Partial R-squared values put those relationships on a common scale: each measures the fraction of residual variation explained by the omitted variable after conditioning on specified observed variables. The resulting calculations do not reveal whether a particular unmeasured confounder exists. They quantify how much bias would be possible under stated strength assumptions.

Regression Setup and Partial R-Squared

Let \(Y\) be an outcome, \(D\) a treatment or exposure, and \(X\) a vector of observed covariates that includes an intercept in the regression. The observed-data regression is \(Y\) on \(D\) and \(X\). Write its treatment coefficient as \(\hat{\tau}\), its conventional homoskedastic standard error as \(SE(\hat{\tau})\), and its residual degrees of freedom as \(df\). Suppose a scalar omitted variable \(U\), or a block of omitted variables, could be added to this regression. The sensitivity calculation compares the fitted treatment coefficient with the coefficient after controlling for \(U\).

Definition: \(R^2_{D\sim U\mid X}\) is the partial R-squared for \(U\) in the regression of \(D\) on \(X\) and \(U\): the fraction of the variation in \(D\) left after adjusting for \(X\) that is explained by \(U\). \(R^2_{Y\sim U\mid D,X}\) is the partial R-squared for \(U\) in the regression of \(Y\) on \(D\), \(X\), and \(U\): the fraction of the variation in \(Y\) left after adjusting for \(D\) and \(X\) that is explained by \(U\). Both values lie between 0 and 1.

These are conditional associations, not ordinary correlations between \(U\) and \(D\) or \(Y\). A variable may be strongly related to the outcome overall but have a small \(R^2_{Y\sim U\mid D,X}\) if the observed covariates already explain the relevant outcome variation. The two partial R-squared values play distinct roles: the treatment partial R-squared captures how much \(U\) can shift the treatment coefficient, while the outcome partial R-squared captures how strongly \(U\) predicts the outcome after accounting for treatment and observed covariates.

The algebra below uses the same observations and controls in the observed and augmented regressions, with ordinary least squares and conventional homoskedastic standard errors. It describes coefficient bias from omitting \(U\); it does not establish that the regression coefficient is a causal effect. A causal interpretation additionally requires a suitable design and assumptions about confounding, treatment, and the target population.

Bias Bound in Standard-Error Units

Given specified partial R-squared values, the maximum absolute omitted-variable bias, measured in units of the observed regression's standard error, is

$$ \frac{|\operatorname{Bias}(\hat{\tau})|}{SE(\hat{\tau})} \leq \sqrt{df\, \frac{R^2_{Y\sim U\mid D,X}\,R^2_{D\sim U\mid X}} {1-R^2_{D\sim U\mid X}}}. $$

For a single omitted variable under the stated linear-regression setup, this expression gives the magnitude implied by the two partial R-squared values (with the sign determined by the directions of the relationships). For an omitted block, it is a bound: it allows the block's relationships with treatment and outcome to align in the direction that produces the greatest bias. A larger outcome partial R-squared or treatment partial R-squared increases the possible bias. The denominator shows why treatment predictability matters especially as \(R^2_{D\sim U\mid X}\) approaches 1.

A short derivation explains the scaling. First residualize \(D\) and \(U\) with respect to \(X\). The omitted-variable coefficient shift is the coefficient on \(D\) attributable to the part of \(U\) associated with residualized treatment. By the definition of \(R^2_{D\sim U\mid X}\), the squared correlation of those residualized variables is \(R^2_{D\sim U\mid X}\). By the definition of \(R^2_{Y\sim U\mid D,X}\), the outcome variation attributable to the part of \(U\) orthogonal to \(D\) and \(X\) is that fraction of the outcome's residual sum of squares. Combining these two projections gives the squared bias divided by the squared conventional standard error:

$$ \left(\frac{\operatorname{Bias}(\hat{\tau})}{SE(\hat{\tau})}\right)^2 = df\, \frac{R^2_{Y\sim U\mid D,X}\,R^2_{D\sim U\mid X}} {1-R^2_{D\sim U\mid X}}. $$

The factor \(df\) enters because the conventional residual variance estimate is the residual sum of squares divided by \(df\). This relationship is an algebraic sensitivity result, not a claim that the omitted variable's strength is known.

Worked Example: Translating Partial R-Squared Values Into Bias

Suppose a hypothetical OLS regression estimates a treatment effect of 2.40 outcome units with \(SE(\hat{\tau})=0.80\) and \(df=234\). Consider an omitted confounder with \(R^2_{D\sim U\mid X}=0.08\) and \(R^2_{Y\sim U\mid D,X}=0.05\). Calculate the maximum bias in standard-error and outcome units.

Substitute the values into the bias formula:

$$ \frac{|\operatorname{Bias}(\hat{\tau})|}{0.80} = \sqrt{234\frac{0.05(0.08)}{1-0.08}} = \sqrt{\frac{0.936}{0.92}} = \sqrt{1.0174} \approx 1.009. $$

Thus the maximum bias under these specified strengths is about \(1.009\) standard errors. In outcome units, this is \(1.009(0.80)=0.807\) units. If the bias is in the direction that reduces the positive estimate, the sensitivity-adjusted coefficient would be about \(2.40-0.807=1.593\) units. If it is in the opposite direction, it would be about \(2.40+0.807=3.207\) units. The calculation does not select between these directions.

The interpretation is conditional: a confounder with those two partial R-squared values could produce up to about \(0.807\) units of coefficient bias under the regression assumptions. It does not show that the estimate is biased by that amount, or that the estimate is causal.

Estimating Partial R-Squared Values for Benchmarks

In practice, the omitted variable's partial R-squared values are unknown. One useful approach is to benchmark them against observed covariates or blocks of covariates. The purpose is not to assert that an observed variable is a perfect stand-in for an unobserved confounder, but to make the assumed strength scale interpretable.

For an auxiliary regression test of a block of \(k\) variables, let \(F\) be the usual partial F statistic for the block, with residual degrees of freedom \(df_{\mathrm{res}}\) in the full auxiliary regression. The block's partial R-squared is

$$ R^2_{\mathrm{partial}}=\frac{kF}{kF+df_{\mathrm{res}}}. $$

This identity follows from the partial F statistic: \(F=(R^2_{\mathrm{partial}}/k)/((1-R^2_{\mathrm{partial}})/df_{\mathrm{res}})\). Rearranging gives the displayed expression. For one variable, \(k=1\), and if the coefficient's test statistic is \(t\), then \(F=t^2\). This calculation must use the degrees of freedom from the relevant auxiliary regression, not automatically the \(df\) from another model.

Worked Example: Benchmarking With an Observed Covariate

In a hypothetical analysis, an observed covariate \(W\) has a partial F statistic of \(F=6.00\) when predicting treatment after adjustment for the other observed controls. The auxiliary regression has \(df_{\mathrm{res}}=238\). In the outcome regression that includes treatment and the observed controls, \(W\) has partial \(F=4.00\) with \(df_{\mathrm{res}}=237\). Treat each test as a one-variable test and calculate the corresponding partial R-squared values.

For treatment, \(k=1\), so

$$ R^2_{D\sim W\mid X} = \frac{1(6.00)}{1(6.00)+238} = \frac{6}{244} \approx 0.02459. $$

For the outcome, using the degrees of freedom from its own auxiliary regression,

$$ R^2_{Y\sim W\mid D,X} = \frac{1(4.00)}{1(4.00)+237} = \frac{4}{241} \approx 0.01660. $$

These values mean that \(W\) explains about 2.46% of treatment variation remaining after adjustment for \(X\), and about 1.66% of outcome variation remaining after adjustment for \(D\) and \(X\). They provide an observed-covariate benchmark. Whether a particular unmeasured confounder is weaker or stronger on either dimension is a substantive judgment, not something determined by these calculations.

Robustness Value for Moving an Estimate to Zero

A robustness value summarizes the equal-strength case: how large would both partial R-squared values need to be for the maximum possible bias to equal the absolute observed coefficient? Here “equal strength” means \(R^2_{D\sim U\mid X}=R^2_{Y\sim U\mid D,X}=r\). Let \(t=\hat{\tau}/SE(\hat{\tau})\) be the observed coefficient's t statistic. Setting the bias bound equal to \(|\hat{\tau}|/SE(\hat{\tau})=|t|\) gives

$$ df\frac{r^2}{1-r}=t^2. $$

Define \(f^2=t^2/df\). The equation becomes \(r^2+f^2r-f^2=0\). Its nonnegative solution is the robustness value:

Definition: The equal-strength robustness value for reducing the regression coefficient to zero is
$$ RV_0 = \frac{\sqrt{f^4+4f^2}-f^2}{2}, \qquad f^2=\frac{t^2}{df}. $$

This value is a partial R-squared, not a percentage change in the coefficient. If both partial R-squared values equal \(RV_0\), the maximum bias bound is just large enough to move the point estimate to zero. Smaller values in both dimensions do not suffice under this equal-strength bound; unequal strengths can also produce enough bias, but their combination must be assessed with the general formula.

Worked Example: Calculating an Equal-Strength Robustness Value

Use the hypothetical estimate \(2.40\), standard error \(0.80\), and \(df=234\). The observed statistic is \(t=2.40/0.80=3.00\). Calculate the equal-strength robustness value for moving the point estimate to zero.

First calculate \(f^2=t^2/df=9/234=0.03846\), so \(f=\sqrt{0.03846}\approx0.1961\). Then

$$ RV_0 = \frac{\sqrt{(0.03846)^2+4(0.03846)}-0.03846}{2} = \frac{\sqrt{0.1553}-0.03846}{2} \approx \frac{0.3941-0.03846}{2} \approx 0.1778. $$

Thus an omitted confounder with about \(0.178\), or 17.8%, partial R-squared with treatment conditional on \(X\), and the same partial R-squared with outcome conditional on treatment and \(X\), could produce a maximum bias as large as the estimated 2.40-unit coefficient. This is an equal-strength benchmark, not a claim that such a confounder exists.

A robustness value for reaching zero is not automatically a robustness value for losing statistical significance. Those are different thresholds: statistical significance also depends on the standard error and the chosen test procedure. When a confounder is actually added, the standard error and degrees of freedom can change, so inferential conclusions require recalculating them under the augmented model or using a sensitivity method that explicitly accounts for those changes.

Assumptions, Scope, and a Common Pitfall

The formulas quantify sensitivity within a linear regression framework. They require a common analysis sample and consistent definitions of treatment and controls across the observed and augmented models. The conventional standard-error scaling shown here relies on ordinary least squares with homoskedastic standard errors. With heteroskedasticity-robust or clustered standard errors, the coefficient-bias calculation may still be informative, but this exact conversion to conventional standard-error units should not be treated as an inferential result without an appropriate extension.

Partial R-squared values do not supply the direction of confounding. The sign of bias depends on how the omitted variable relates to treatment and outcome after conditioning on the specified variables. A magnitude bound allows the direction most adverse to the estimated effect; a directional claim needs additional information. Nor does a small robustness value prove that the effect is absent: it indicates sensitivity to confounders at or above a stated strength, not evidence about whether those confounders are present.

  • Common mistake: “The omitted confounder has a 10% partial R-squared with the outcome, so it can explain 10% of the treatment estimate.” These are different quantities: an outcome partial R-squared alone does not determine coefficient bias.
  • Correction: Use both \(R^2_{Y\sim U\mid D,X}\) and \(R^2_{D\sim U\mid X}\), together with \(df\), in the bias formula. Then convert the result from standard-error units to outcome units using \(SE(\hat{\tau})\).
  • Common mistake: Interpreting a robustness value as the probability that the estimate is causal or that no confounder exists.
  • Correction: A robustness value is a threshold in partial-R-squared units under a specified sensitivity calculation. It is not a probability and does not replace a causal identification argument.
Key takeaway: Partial-R-squared sensitivity analysis expresses omitted-confounder strength on two conditional scales, translates that strength into a possible regression-coefficient bias, and provides a benchmark for how strong an omitted variable would need to be to move the estimate to zero.

Check Your Understanding

Use the definitions and formulas in this tutorial to answer the following.

  1. In words, distinguish \(R^2_{D\sim U\mid X}\) from \(R^2_{Y\sim U\mid D,X}\).
  2. If an omitted variable has zero partial R-squared with treatment conditional on \(X\), what does the bias bound imply?
  3. A one-variable auxiliary regression gives \(F=5.00\) with 195 residual degrees of freedom. Calculate its partial R-squared.
  4. Why does a robustness value for moving an estimate to zero not by itself determine whether the estimate would remain statistically significant?
  5. Explain why benchmarking an unobserved confounder against an observed covariate does not establish that their confounding strengths are equal.
Clinical Biostats