Learn R Programming

echoice2 (version 0.2.4)

dd_est_hmnl_screen: Estimate discrete choice model (HMNL, attribute-based screening (not including price))

Description

Estimate discrete choice model (HMNL, attribute-based screening (not including price))

Usage

dd_est_hmnl_screen(
  dd,
  price_screen = TRUE,
  R = 1e+05,
  keep = 10,
  cores = NULL,
  control = list(include_data = TRUE)
)

Value

est ec-draw object (List)

Arguments

dd

discrete choice data (long format)

price_screen

A logical, indicating whether price tag screening should be estimated

R

draws

keep

thinning

cores

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

control

list containing additional settings

See Also

dd_dem_sr() to generate demand predictions based on this model

Examples

Run this code
# \donttest{
data(icecream_discrete)
icecream_est <- icecream_discrete %>% dplyr::filter(id<20) %>% 
  dd_est_hmnl_screen(R=20, cores=2)
# }

Run the code above in your browser using DataLab