powered by
Estimate discrete choice model (HMNL)
dd_est_hmnl( dd, R = 1e+05, keep = 10, cores = NULL, control = list(include_data = TRUE) )
est ec-draw object (List)
discrete choice data (long format)
draws
thinning
no of CPU cores to use (default: auto-detect)
list containing additional settings
dd_dem() to generate demand predictions based on this model
dd_dem()
data(icecream_discrete) icecream_est <- icecream_discrete %>% dd_est_hmnl(R=20, cores=2)
Run the code above in your browser using DataLab