vd_est_vdm {echoice2} | R Documentation |
Estimate volumetric demand model
Description
Estimate volumetric demand model
Usage
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)
[Package echoice2 version 0.2.4 Index]