Hi Stephane,
I am estimating a Mixed Multinomial Logit model in WTP space. My model includes a negative lognormal cost coefficient, negative lognormal parameters for parking search time and egress time, and fixed coefficients for parking security (low, medium, and high, with low as the reference category).
I would like to include interactions to investigate whether willingness to pay differs across groups. Specifically, I am interested in modelling interactions between:
Arrival time at work (before 9:00 a.m. vs. 9:00 a.m. or later) and parking search time.
Gender (female vs. male) and high parking security.
What is the recommended way to specify these interactions in an MMNL model estimated in WTP space ? Are there any examples or best practices for coding socio-demographic interactions in WTP-space MMNL models?
Many thanks,
Ming
Important: Read this before posting to this forum
- This forum is for questions related to the use of Apollo. We will answer some general choice modelling questions too, where appropriate, and time permitting. We cannot answer questions about how to estimate choice models with other software packages.
- There is a very detailed manual for Apollo available at http://www.ApolloChoiceModelling.com/manual.html. This contains detailed descriptions of the various Apollo functions, and numerous examples are available at http://www.ApolloChoiceModelling.com/examples.html. In addition, help files are available for all functions, using e.g. ?apollo_mnl
- Before asking a question on the forum, users are kindly requested to follow these steps:
- Check that the same issue has not already been addressed in the forum - there is a search tool.
- Ensure that the correct syntax has been used. For any function, detailed instructions are available directly in Apollo, e.g. by using ?apollo_mnl for apollo_mnl
- Check the frequently asked questions section on the Apollo website, which discusses some common issues/failures. Please see http://www.apollochoicemodelling.com/faq.html
- Make sure that R is using the latest official release of Apollo.
- Users can check which version they are running by entering packageVersion("apollo").
- Then check what is the latest full release (not development version) at http://www.ApolloChoiceModelling.com/code.html.
- To update to the latest official version, just enter install.packages("apollo"). To update to a development version, download the appropriate binary file from http://www.ApolloChoiceModelling.com/code.html, and install the package from file
- If the above steps do not resolve the issue, then users should follow these steps when posting a question:
- provide full details on the issue, including the entire code and output, including any error messages
- posts will not immediately appear on the forum, but will be checked by a moderator first. We check the forum at least twice a week. It may thus take a couple of days for your post to appear and before we reply. There is no need to submit the post multiple times.
Socio-demographic variables in MMNL WTP Space
Re: Socio-demographic variables in MMNL WTP Space
Hi Ming,
I can’t recall any particular set of good practices when including systematic taste variations in WTP-space models. After a quick google search, most papers I found deal with parametrising random coefficient in WTP-space, without going into details of systematic taste variation or interactions with socio-demographics, for example Train (2005), Daly et al (2012) or Daly et al (2023).
If you have enough observations (and enough information in your data), perhaps the cleanest way to do this would be using different coefficients for each subgroup. For example, to calculate different WTP for parking search time (PST) for people arriving early (before 9am) and late (post 9am), you could do something like the following:
Where eta_1, eta_2, eta_3, … are random errors (draws) following a standard normal distribution. Variables early and late are dummy variables indicating the arrival time of the respondent. PST_1 is the parking search time of alternative 1. mCost, sCost, mPST_early, sPST_early, mPST_late, sPST_late, asc_1 are parameters to be estimated.
If you do not have enough observations to estimate all those parameters, you could simplify the formulation, for example forcing sPST_early = sPST_late.
I hope this helps.
Best wishes,
David
I can’t recall any particular set of good practices when including systematic taste variations in WTP-space models. After a quick google search, most papers I found deal with parametrising random coefficient in WTP-space, without going into details of systematic taste variation or interactions with socio-demographics, for example Train (2005), Daly et al (2012) or Daly et al (2023).
If you have enough observations (and enough information in your data), perhaps the cleanest way to do this would be using different coefficients for each subgroup. For example, to calculate different WTP for parking search time (PST) for people arriving early (before 9am) and late (post 9am), you could do something like the following:
Code: Select all
apollo_randCoeff <- function(apollo_beta, apollo_inputs){
randcoeff[["bCost"]] = -exp(mCost + sCost*eta_1)
randcoeff[["wPST_early"]] = -exp(mPST_early + sPST_early*eta_2)
randcoeff[["wPST_late"]] = -exp(mPST_late + sPST_late*eta_3)
…
}
apollo_probabilities <- function(apollo_beta, apollo_inputs, functionality="estimate"){
…
V[["alt1"]] = asc_1 + bCost*( (wPST_early*early + wPST_late*late)*PST_1 + … + cost)
…
}
If you do not have enough observations to estimate all those parameters, you could simplify the formulation, for example forcing sPST_early = sPST_late.
I hope this helps.
Best wishes,
David