poststrat_onestep | R Documentation |
Do post-stratification and summarize draws in one step
poststrat_onestep(
fit,
poststrat_tgt,
orig_data = NULL,
area_var = "cd",
count_var = "count",
...
)
fit |
A brms object from |
poststrat_tgt |
The poststratification target. It must contain the column
|
orig_data |
original survey data. This defaults to NULL but if supplied be used to (1) subset the poststratification, to areas only in the survey, and (2) label the question outcome. |
area_var |
A character string for the variable name(s) for area to group
and aggregate by. That is, the area of interest in MRP. Defaults to |
count_var |
A character string for the variable name for the population
count in the |
... |
Additional arguments to |
A simple wrapper around poststrat_draws
and summ_sims
.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.