Important: Read this before posting to this forum

  1. 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.
  2. 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
  3. Before asking a question on the forum, users are kindly requested to follow these steps:
    1. Check that the same issue has not already been addressed in the forum - there is a search tool.
    2. 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
    3. Check the frequently asked questions section on the Apollo website, which discusses some common issues/failures. Please see http://www.apollochoicemodelling.com/faq.html
    4. Make sure that R is using the latest official release of Apollo.
  4. If the above steps do not resolve the issue, then users should follow these steps when posting a question:
    1. provide full details on the issue, including the entire code and output, including any error messages
    2. posts will not immediately appear on the forum, but will be checked by a moderator first. This may take a day or two at busy times. There is no need to submit the post multiple times.

Elasticity with random parameter in mixed logit.

Ask questions about model specifications. Ideally include a mathematical explanation of your proposed model.
Post Reply
Niranjan
Posts: 12
Joined: 01 Feb 2021, 23:27

Elasticity with random parameter in mixed logit.

Post by Niranjan »

I have a question regarding the utility equation for understanding the elasticity in mixed logit model.

I can think of two ways of including elasticity, suppose i have a utility equation with time and cost and income.

1) U = B_time * Travel time + [([B_cost + sigma_cost * normal ) * (income)^B_inc] * Travel cost

2) U = B_time * Travel time + [B_Cost * (income)^B_inc + sigma_Cost *normal] * Travel cost

Are both of these methods correct? especially the second one where the sensitivity is observed just for the mean parameter while variance observed will be same compared to a MMNL model without income parameter (my guess is the second method should still work with change in interpretation). Or is it that only the first method is correct where variance also changes according to income. Is there any published work where i can see the interpretation of parameter for Mixed logit case?

Additionally in the first method how can i check for the significance of the whole term (B_cost + sigma_cost * normal ) * (income)^B_inc (like delta method) as there is a variable income in between the parameters.
stephanehess
Site Admin
Posts: 1002
Joined: 24 Apr 2020, 16:29

Re: Elasticity with random parameter in mixed logit.

Post by stephanehess »

Hi

my first observation needs to be that you really should not use a Normal distribution for a cost coefficient.

That aside, if you want to capture an income elasticity on the sensitivity to cost, then the income effect should be multiplying the cost attribute, implying that each unit of the cost attribute matters less for someone with higher income. That is in line with your specification 1

Regarding significance testing of the whole term, this would be complicated and would require you to manually apply the delta method

Stephane
--------------------------------
Stephane Hess
www.stephanehess.me.uk
Niranjan
Posts: 12
Joined: 01 Feb 2021, 23:27

Re: Elasticity with random parameter in mixed logit.

Post by Niranjan »

Thankyou for your valuable insights, i wanted to add a quick simple theoretical question (assuming the cost attribute is still normal),
Does addition of the term to capture an income elasticity as mentioned by doing [([B_cost + sigma_cost * normal ) * (income)^B_inc] means we are changing the distribution of cost parameter [([B_cost + sigma_cost * normal ) * (income)^B_inc] from simple normal distribution as well?
dpalma
Posts: 190
Joined: 24 Apr 2020, 17:54

Re: Elasticity with random parameter in mixed logit.

Post by dpalma »

Hi,

In the approach you describe: bCost = ([B_cost + sigma_cost * normal ) * (income)^B_inc, bCost would remain normal.
A normal random variable remains normal under linear transformations, and what you are doing is scaling the normal variable by a factor of the income (assuming B_inc is not random), so bCost remains normal. This is true for each individual.

Now, at the sample level, you have that all individuals have normal random coefficients for the cost, but each o those coefficients have different mean and s.d. (because the income varies from one individual to the next). Notwithstanding, the central limit theorem guarantees that the average of all those coefficients will also be normally distributed.

Cheers
David
Niranjan
Posts: 12
Joined: 01 Feb 2021, 23:27

Re: Elasticity with random parameter in mixed logit.

Post by Niranjan »

Yes that does makes perfect sense. Thank you
martinf
Posts: 2
Joined: 11 May 2021, 16:20

Re: Elasticity with random parameter in mixed logit.

Post by martinf »

Dear Professor

Thank you for providing us the opportunity to work with your software Appolo !
I want to implement a RPL model in order to calculate the WTP of renewable energies (wind power, solar and biogas).
In particular, I would like to add the price elasticity to income, i.e. to measure how WTP may vary according to variations of income.
Looking at your example number 3 on your website, I would like to know if this equation could be the right equation?

with b_price = -exp((b_price_x) + sigma_log_price*draws_price) and other terms follow a normal distribution.

U = ASC + b_price*(b_photo*photo +b_eol*eol+b_meth*meth + price) + b_price*((income/mean(income)^b_elasticitypriceincome )*price

Best regards,

Martin
stephanehess
Site Admin
Posts: 1002
Joined: 24 Apr 2020, 16:29

Re: Elasticity with random parameter in mixed logit.

Post by stephanehess »

Hi Martin

not quite, as you're using the price attribute twice there

instead, it should be:

U = ASC + b_price*(b_photo*photo +b_eol*eol+b_meth*meth + (income/mean(income)^b_elasticitypriceincome*price)

Stephane
--------------------------------
Stephane Hess
www.stephanehess.me.uk
Post Reply