| regsensitivity | R Documentation |
Top-level dispatcher that mirrors the Stata regsensitivity command.
For most users, calling regsen_bounds() or regsen_breakdown() directly
is clearer.
regsensitivity(
formula,
data,
subcommand = c("bounds", "breakdown", "summary"),
...
)
formula |
Two-sided formula: |
data |
A data.frame. |
subcommand |
One of |
... |
Additional arguments forwarded to the underlying function. |
Versions before 0.3.0 took subcommand first, following the Stata
syntax. A call in that order, regsensitivity("bounds", y ~ x, data),
still runs, with a deprecation warning.
An object of class regsensitivity, or for
subcommand = "summary" one of class regsensitivity_summary.
regsen_bounds(), regsen_breakdown(), regsen_summary()
data(bfg2020)
regsensitivity(
avgrep2000to2016 ~ tye_tfe890_500kNI_100_l6 +
log_area_2010 + lat + lon,
data = bfg2020,
subcommand = "bounds",
cbar = 0.1
)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.