Returns the computed WTP from a preference space model.
wtp(object, scalePar)
A data frame of the WTP estimates.
Willingness to pay is computed by dividing the estimated parameters of a utility model in the "preference" space by the scale parameter, which is should be price to obtain WTP estimates. Uncertainty is handled via simulation.
library(logitr)
# Estimate a preference space model
mnl_pref <- logitr(
data = yogurt,
outcome = "choice",
obsID = "obsID",
pars = c("price", "feat", "brand")
)
#> Running model...
#> Done!
# Compute the WTP implied from the preference space model
wtp(mnl_pref, scalePar = "price")
#> Estimate Std. Error z-value Pr(>|z|)
#> scalePar 0.366555 0.024343 15.0576 < 2.2e-16 ***
#> feat 1.340699 0.358207 3.7428 0.000182 ***
#> brandhiland -10.136219 0.585260 -17.3192 < 2.2e-16 ***
#> brandweight -1.749094 0.181626 -9.6302 < 2.2e-16 ***
#> brandyoplait 2.003848 0.143168 13.9965 < 2.2e-16 ***
#> ---
#> Signif. codes: 0 ‘***’ 0.001 ‘**’ 0.01 ‘*’ 0.05 ‘.’ 0.1 ‘ ’ 1