dcpo uses diverse survey data to estimate public opinion across countries and over time.
Usage
dcpo(dcpo_input, chime = TRUE, ...)
Arguments
dcpo_input
a data frame of survey items and marginals generated by DCPOtools::dcpo_setup
chime
play chime when complete?
...
arguments to be passed to rstan::stan. Defaults reset by dcpo are
described below under details.
Value
a stanfit object
Details
dcpo, when passed a data frame dcpo_input of survey marginals created
by dcpo_setup, estimates a latent variable of public opinion. See rstan::stan for
additional options; stan defaults reset by dcpo are seed = 324, thin = 2,cores = min(stan_args$chains, parallel::detectCores()/2), and control <- list(adapt_delta = 0.99, stepsize = 0.005, max_treedepth = 14)