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)
)

Arguments

vd

A tibble, containing volumetric demand data (long format)

tidy

A logical, whether to apply 'echoice2' tidier function (default: TRUE)

R

A numeric, no of draws

keep

A numeric, thinning factor

cores

An integer, no of CPU cores to use (default: auto-detect)

error_dist

A string defining the error term distribution, 'EV1' or 'Normal'

control

A list containing additional settings

Value

An 'echoice2' draw object, in the form of a list

See also

vd_dem_vdm() to generate demand predictions based on this model

vd_est_vdm_screen() to estimate a volumetric demand model with screening

Examples

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)
#> Using 2 cores
#>  MCMC in progress 
#> MCMC complete
#>  Total Time Elapsed: 0.00 minutes