ec_screen_summarise {echoice2} | R Documentation |
Summarize posterior draws of screening
Description
Adds summaries of posterior draws of demand to tibble. (using the new demand draw format)
Usage
ec_screen_summarise(sc, quantiles = c(0.05, 0.95))
ec_screen_summarize(sc, quantiles = c(0.05, 0.95))
Arguments
sc |
tibble containing screening draws in .screendraws |
quantiles |
Quantiles for Credibility Intervals (default: 90% interval) |
Value
Summary of screening probabilities
Examples
data(icecream)
icecream_est <- icecream %>% vd_est_vdm_screen(R=20, price_screen=TRUE, cores=2)
#consideration set by respondent
cons_ss <-
ec_screenprob_sr(icecream, icecream_est, cores=2) %>%
group_by(id, task) %>%
summarise(.screendraws=list(purrr::reduce(.screendraws ,`+`))) %>%
ec_screen_summarise() %>%
group_by(id) %>%
summarise(n_screen=mean(`E(screening)`))
[Package echoice2 version 0.2.4 Index]