powered by
Estimate volumetric demand model
vd_est_vdm( vd, tidy = TRUE, R = 1e+05, keep = 10, cores = NULL, error_dist = "EV1", control = list(include_data = TRUE) )
An 'echoice2' draw object, in the form of a list
A tibble, containing volumetric demand data (long format)
A logical, whether to apply 'echoice2' tidier function (default: TRUE)
A numeric, no of draws
A numeric, thinning factor
An integer, no of CPU cores to use (default: auto-detect)
A string defining the error term distribution, 'EV1' or 'Normal'
A list containing additional settings
vd_dem_vdm() to generate demand predictions based on this model
vd_dem_vdm()
vd_est_vdm_screen() to estimate a volumetric demand model with screening
vd_est_vdm_screen()
data(icecream) #run MCMC sampler (use way more than 10 draws for actual use) icecream_est <- icecream %>% dplyr::filter(id<50) %>% vd_est_vdm(R=10, cores=2)
Run the code above in your browser using DataLab