Returns a comparison of the WTP between a preference space and WTP space model.
wtpCompare(model_pref, model_wtp, scalePar)
Arguments
model_pref: The output of a "preference space" model estimated using the logitr() function.
model_wtp: The output of a "willingness to pay space" model estimated using the logitr() function.
scalePar: The name of the column that identifies the scale variable, which is typically "price" for WTP space models, but could be any continuous variable, such as "time".
Returns
A data frame comparing the WTP estimates from preference space and WTP space models.
Details
Willingness to pay (WTP) is first computed from the preference space model by dividing the estimated parameters by the scale parameter (typically "price" to obtain WTP estimates). Then those estimates are compared against the WTP values directly estimated from the "WTP" space model. Uncertainty is handled via simulation.
Examples
library(logitr)# Estimate a MNL model in the Preference spacemnl_pref <- logitr( data = yogurt, outcome ="choice", obsID ="obsID", pars = c("price","feat","brand"))# Compute the WTP implied from the preference space modelwtp_mnl_pref <- wtp(mnl_pref, scalePar ="price")# Estimate a MNL model in the WTP Space, using the computed WTP values# from the preference space model as starting pointsmnl_wtp <- logitr( data = yogurt, outcome ="choice", obsID ="obsID", pars = c("feat","brand"), scalePar ="price", startVals = wtp_mnl_pref$Estimate
)# Compare the WTP between the two spaceswtpCompare(mnl_pref, mnl_wtp, scalePar ="price")