| regsen_explore | R Documentation |
Opens a shiny application for moving the sensitivity parameters by hand and watching the identified set respond. It is a way of building intuition, and of finding the region worth reporting, before committing to a figure.
regsen_explore(formula, data, compare = NULL, ...)
formula |
A model formula, as for |
data |
A data frame. |
compare |
Character vector of comparison covariates. |
... |
Passed to |
shiny is only needed to run this, so it lives in Suggests: the
rest of the package works without it.
Invisibly NULL; called for the running application.
# Starts a Shiny app, so it only runs in an interactive session.
if (interactive()) {
data(bfg2020)
bfg2020$statea <- factor(bfg2020$statea)
w1 <- c("log_area_2010", "lat", "lon")
regsen_explore(
avgrep2000to2016 ~ tye_tfe890_500kNI_100_l6 +
log_area_2010 + lat + lon,
data = bfg2020, compare = w1
)
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.