Learn R Programming

echoice2 (version 0.2.4)

ec_estimates_screen: Summarize attribute-based screening parameters

Description

Summarize attribute-based screening parameters from an attribute-based screening model in 'echoice2'

Usage

ec_estimates_screen(est, quantiles = c(0.05, 0.95))

Value

tibble with screening summaries

Arguments

est

is an 'echoice2' draw object (list) from a model with attribute-based screening

quantiles

quantile for CI

Examples

Run this code
#run MCMC sampler (use way more than 20 draws for actual use)
data(icecream)
est_scr_icecream <- vd_est_vdm_screen(icecream%>%dplyr::filter(id<30), R=20, cores=2)
#summarise draws of screening probabilities
ec_estimates_screen(est_scr_icecream)
#Note: There is no variance in this illustrative example - more draws are needed

Run the code above in your browser using DataLab