draw_from_posterior {coalitions} | R Documentation |
Draw random numbers from posterior distribution
Description
Draw random numbers from posterior distribution
Usage
draw_from_posterior(
survey,
nsim = 10000,
seed = as.numeric(now()),
prior = NULL,
correction = NULL
)
Arguments
survey |
survey object as returned by |
nsim |
number of simulations |
seed |
sets seed |
prior |
optional prior information. Defaults to 1/2 (Jeffrey's prior). |
correction |
A positive number. If not |
Value
data.frame
containing random draws from Dirichlet distribution
which can be interpreted as election results.
See Also
[Package coalitions version 0.6.24 Index]