Discrete Choice Predictions (HMNL with attribute-based screening)

dd_dem_sr(dd, est, prob = FALSE, cores = NULL)

Arguments

dd

data

est

est

prob

logical, report probabilities instead of demand

cores

cores

Value

Draws of expected choice

See also

dd_est_hmnl_screen() to generate demand predictions based on this model

Examples

data(icecream_discrete)
icecream_est <- icecream_discrete %>% filter(id<20) %>% dd_est_hmnl_screen(R=10)
#> Using 16 cores
#>  MCMC in progress 
#> MCMC complete
#>  Total Time Elapsed: 0.00 minutes
#demand prediction
icecream_dempred <- icecream_discrete %>% filter(id<20) %>% 
 dd_dem_sr(icecream_est, cores=2)
#> Using 2 cores