pp_check: Posterior predictive checks for bayesian vote count models.

Description Usage Arguments Value Examples

View source: R/post_predictive_check.R

Description

Posterior predictive checks for bayesian vote count models.

Usage

1
2
3
pp_check_party(model_fit_party)

pp_check(model_fit)

Arguments

model_fit_party

Output of mrp_party_estimation

model_fit

Output of mrp_estimation

Value

A tbl with posterior simulations for observed polling stations, with observed vote counts

Examples

1
2
3
4
data("gto_2012")
model <- mrp_party_estimation(gto_2012, party = pan_na, stratum = distrito_loc_17,
  frac = 1, seed = 2212)
pp_check <- pp_check_party(model)

tereom/quickcountmx documentation built on Dec. 2, 2019, 9:58 p.m.