zelig_prediction_summary: Extract summary stats from a simulated Zelig model

Description Usage Arguments Value Examples

Description

Returns simulation name, condition name, and the lower quantile (2.5%), mean (NOT median), and upper quantile (97.5%) of each simulation-condition pair's expected values (ev).

Usage

1

Arguments

model

(Zelig) a simulated model from the Zelig package with one or more conditions

Value

tbl_df with one row per simulation-condition pair, and columns simulation, condition, lower, mean, upper

Examples

1
2
3
4
5
6
library(Zelig)
z <- zls$new()
z$zelig(Fertility ~ Education, data = swiss)
z$setx(Education = 5)
z$sim()
zelig_prediction_summary(z)

SSW-DataLab/sswdlHelpR documentation built on May 9, 2019, 11:43 a.m.