View source: R/helperFunctions.R
CreateBlankPolicies | R Documentation |
Create 'zero effect' policies that can be modified
CreateBlankPolicies(npols, model, price_change_only = TRUE)
npols |
Number of policies to simulate |
model |
Estimated model from mdcev |
price_change_only |
Logical value for whether to include policy changes to dat_psi. Defaults to TRUE. TRUE implies that only price changes are used in simulation. |
data_rec <- mdcev.data(data_rec, subset = id <= 500, id.var = "id",
alt.var = "alt", choice = "quant")
mdcev_est <- mdcev( ~ 0, data = data_rec,
model = "hybrid0", algorithm = "MLE",
std_errors = "mvn")
CreateBlankPolicies(npols = 2, mdcev_est)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.