poststratify: Get poststratified estimates from a model

View source: R/poststratify.R

poststratifyR Documentation

Get poststratified estimates from a model

Description

Get poststratified estimates from a model

Usage

poststratify(
  model,
  poststratification_frame,
  estimates_by,
  weight_column = n,
  lower_confidence = 0.025,
  upper_confidence = 1 - lower_confidence,
  draws = "predicted",
  slice_size = NULL,
  progress = FALSE,
  ...
)

Arguments

draws

predicted (default) or fitted. Predicted incorporates all uncertainty.

...

Extra arguments for adding draws from tidybayes. See tidybayes::add_predicted_draws() for details.


joekroese/tidymrp documentation built on Aug. 8, 2024, 2:04 p.m.