qi_slimmer: Find the median and a central interval of simulated quantity...

Description Usage Arguments Details Author(s) See Also Examples

View source: R/interface.R

Description

Find the median and a central interval of simulated quantity of interest distributions

Usage

1
qi_slimmer(df, qi_type = "ev", ci = 0.95)

Arguments

df

a tidy-formatted data frame of simulated quantities of interest created by zelig_qi_to_df.

qi_type

character string either ev or pv for returning the central intervals for the expected value or predicted value, respectively.

ci

numeric. The central interval to return, expressed on the (0, 100] or the equivalent (0, 1] interval.

Details

A tidy-formatted data frame with the following columns:

Author(s)

Christopher Gandrud

See Also

zelig_qi_to_df

Examples

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()

Zelig documentation built on Jan. 8, 2021, 2:26 a.m.