Description Usage Arguments Details Author(s) See Also Examples
Find the median and a central interval of simulated quantity of interest distributions
1 | qi_slimmer(df, qi_type = "ev", ci = 0.95)
|
df |
a tidy-formatted data frame of simulated quantities of interest
created by |
qi_type |
character string either |
ci |
numeric. The central interval to return, expressed on the
|
A tidy-formatted data frame with the following columns:
The values fitted with setx
qi_ci_min
: the minimum value of the central interval specified with
ci
qi_ci_median
: the median of the simulated quantity of interest
distribution
qi_ci_max
: the maximum value of the central interval specified with
ci
Christopher Gandrud
1 2 3 4 5 6 7 | library(dplyr)
qi.central.interval <- zelig(Petal.Width ~ Petal.Length + Species,
data = iris, model = "ls") %>%
setx(Petal.Length = 2:4, Species = "setosa") %>%
sim() %>%
zelig_qi_to_df() %>%
qi_slimmer()
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.