Comments (4)
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.
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.
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 berandPars = 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.
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)
- Incorporate proper panel log-likelihood calculations HOT 3
- Predicted probability labeling HOT 3
- accessing intercept value HOT 1
- Missmatch of clustered standard errors between logitr and Stata clogit HOT 18
- Feature enhancement: exporting to latex logitr results HOT 11
- Unexpected error when displaying summary HOT 19
- Error in X_chosen[data$obsID, ] : subscript out of bounds HOT 11
- Release logitr 0.6.0 HOT 1
- Release logitr 0.7.0
- Predicting out-of-sample tasks of known individuals - Mixed logit on panel data HOT 3
- Release logitr 0.8.0
- Predicted names don't match HOT 12
- Release logitr 1.0.0
- Is there a requirement of the amount of the data for the logitR function to predict? HOT 3
- effects coding HOT 4
- Usage help HOT 2
- Individual part-worth estimates HOT 2
- Inconsistent Estimator? HOT 29
- Improve obsID error messaging
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from logitr.