| regsen_breakdown | R Documentation |
Find the smallest sensitivity-parameter value at which a given hypothesis
about the long-regression coefficient first fails. For DMP, this is rxbar
as a function of (cbar, rybar, beta) or – with direction = "rybar" –
rybar as a function of (rxbar, cbar, beta). For Oster, this is |delta| as
a function of R-squared(long), beta and (optionally) maxovb.
regsen_breakdown(
formula,
data,
analysis = c("dmp", "oster"),
compare = NULL,
nocompare = NULL,
cbar = 1,
clow = 0,
rybar = Inf,
rybar_expr = NULL,
direction = c("rxbar", "rybar"),
rxbar = NULL,
r2long = 1,
maxovb = NA,
r2long_type = c("eq", "relative"),
maxovb_type = c("bound", "relative"),
beta = "sign",
subset = NULL,
ncores = NULL
)
formula |
Two-sided formula: |
data |
A data.frame. |
analysis |
Which sensitivity analysis to run: |
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. |
cbar, clow, rybar, rybar_expr |
(DMP) Same as in |
direction |
(DMP) Which sensitivity parameter the breakdown point is
reported in: |
rxbar |
(DMP, |
r2long, maxovb |
(Oster) Same as in |
r2long_type |
One of |
maxovb_type |
One of |
beta |
Hypothesis spec. One of:
|
subset |
Optional logical or integer vector indicating which rows
of |
ncores |
Number of cores to spread the frontier's values over.
|
For analysis = "oster" the hypothesis selects between two quantities
that Masten and Poirier (2026) distinguish. An equality hypothesis
(beta = bnd_eq(0)) returns the explain away breakdown point: the
signed delta at which beta_long equals the hypothesized value, the
number psacalc reports. An inequality or sign hypothesis (the
default) returns the sign change breakdown point: the smallest
|delta| at which some value on the wrong side of the hypothesis enters
the identified set. The two can differ by an order of magnitude and the
second is the one that bears on whether the conclusion could be wrong.
Their Theorem 2 shows the sign change breakdown point can never exceed
one, so without maxovb the reported value is capped at 1: a printed
1 means the sign survives every |delta| below the conventional
cutoff, not that a solution was found there. Supplying maxovb adds
the assumption that lifts the cap.
A regsensitivity object. results$index holds the swept
parameter and results$breakdown the breakdown point at each value.
data(bfg2020)
bk <- regsen_breakdown(
avgrep2000to2016 ~ tye_tfe890_500kNI_100_l6 +
log_area_2010 + lat + lon + temp_mean + rain_mean + elev_mean +
d_coa + d_riv + d_lak + ave_gyi,
data = bfg2020,
cbar = seq(0, 1, 0.1)
)
print(bk)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.