Giter VIP home page Giter VIP logo

Comments (4)

jhelvy avatar jhelvy commented on August 18, 2024

Hi Moritz, thanks for your kind words! Can you tell me a bit more about how you're specifying the model? Are you estimating a WTP space model? It might help if you pasted in your code so I could see how you're specifying it.

I'm having a difficult time understanding how a WTP space model would work here. For WTP space models, you need a "price" attribute that everything is normalized to. Is the upfrontCost variable the price? If so, then I believe the WTP space model would look like this:

U_i = λ_i (ω1 * futureSavings_i - upfrontCost_i ) + ε_i

This seems a bit strange as ω1 is the WTP for futureSavings. But perhaps that's what you're after? That is, rather than using the words "willingness to pay," you could interpret it as the "value" of those future savings?

from logitr.

mwussow avatar mwussow commented on August 18, 2024

Thank you for your prompt reply!
Here is a commented example of my modelling approach: https://rpubs.com/mwussow/904254

As shown:

  • preference and WTP space produce the same parameter estimates (as expected)
  • paramter of interest is distributed in the sample (as shown by interaction model)
  • mixed logit in both preference and WTP space fail to capture heterogeneity of parameters

My best guess is that it might be related to the fact that the attributes of the alternatives vary over individuals (could this violate a model assumption?)

from logitr.

jhelvy avatar jhelvy commented on August 18, 2024

This all looks correct to me. The code appears to be correctly implemented. The only potential errors I see are:

  • obs_ID starts at 0. This shouldn't matter, but it's probably better to have it start at 1.
  • In 4.2 (Mixed-logit, WTP space) you have randPars = c(invest = 'n', invest = 'n'). Should be randPars = c(invest = 'n').

Pretty sure neither matter though.

In terms of why the sigma terms are small in the mixed logit models, that doesn't seem that odd to me. The interaction model you have shows an insignificant interaction effect:

## Model Coefficients: 
##               Estimate Std. Error z-value  Pr(>|z|)    
## invest         11.3238     1.4386  7.8716 3.553e-15 ***
## savings       152.5849    18.7007  8.1593 4.441e-16 ***
## savings_group  33.4926    31.2658  1.0712    0.2841    
## invest_group   -1.1794     2.1722 -0.5429    0.5872    

The standard errors on the interaction terms are huge, so the could just as well be zero, meaning there's no measurable difference between these groups. So it's not surprising to me that the mixed logit models suggest that there is little heterogeneity. The log-likelihood values are all the same too, so it looks like they're all converging to the same solutions.

from logitr.

mwussow avatar mwussow commented on August 18, 2024

Thank you for pointing this out! I am puzzled how I could have missed it.
I think this explains the model results.

from logitr.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.