-
Notifications
You must be signed in to change notification settings - Fork 23
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Estimating random utility models from Bruhin et al. (2019) #10
Comments
Hi @armoutihansen! My understanding is that your goal is to estimate the parameters
Let me know if this utility specification is valid, and I can further guide you on how to estimate it in |
Hi @arteagac! Thanks a lot for the quick response. That is indeed correct. The goal would be to estimate in the first specification as well as in the second. Furthermore, for both of these, the goal would also be to estimate the choice sensitivity/scale parameter |
Hi @armoutihansen. Great! It seems that |
Hi @arteagac. Thank you very much for the help! For the standard (multinomial) logit, I managed to reproduced the results of Bruhin et al. (2019): In the output above, For the mixed logit, I did not manage to get that encouraging results: It is not clear to me why the loglik is so much lower than that of the multinomial logit. Also, if I omit the scale factor, I achieve almost half as low a loglik. I am wondering whether this is due to the scale factor not being random in the current estimation. I saw that this point was discussed in your WTP issue, but I couldn't find any reference to randomising the scale factor in the documentation. Is is correct that it is not (yet) possible to let the scale factor be random? Again, thank you very much for the help! |
Hi @armoutihansen, I am not sure what might be causing the flip in signs compared to Bruhin et.al., but I assume it might be some minor issue when you pre-processed x1, x2, x3, and x4. Make sure you did not flip any operations during the data preparation. Regarding clustered errors, unfortunately xlogit still does not support those. Regarding your mixed logit model, I think there is something off because the log-likelihood is extremely low. This is a potential symptom of non-convergence, which is non-surprising for this type of non-linear WTP-like models. You are right, xlogit still does not support a random scale factor, but I think this might not be the cause of the issue. I would advise to try running multiple estimations using different start points by passing the to the |
Okay. Thanks a lot! I will give logitr a try for the clustered standard errors and random scale factor. |
Sure, please let me know how it goes. |
Hi @arteagac, I just wanted to quickly update you on my progress. First of all, I realised that I do not need to specify my model in WTP space in order to estimate the scale parameter. In particular, I can just estimate: and then multiply logitr: In the outputs above, |
Hi @armoutihansen, Thanks a lot for the update. Your feedback helps me to keep improving xlogit. I took a look at logitr's censored normal implementation and it seems that it is the same as xlogit's truncated normal (I will double-check if it is better to rename |
First of all: Thanks a lot for this very useful package!
I was wondering whether it would be possible to estimate the random utility models in Bruhin et al. (2019) as mixed logits using xlogit? The authors already estimate the utility models as standard logits and finite mixtures. Specifically, they estimate simple social preference models based on a panel of binary dictator and reciprocity games. In a binary dictator game, the subject is randomly matched with another subject and has to choose between two allocations. The utility of a given allocation is given by:
In a binary reciprocity game, the subject is faced with the same decision, but the matched subject performs either a kind or unkind decision beforehand. Hence, the utility here is given by:
Based on this, the probability of choosing one allocation over the other is given by:
It is not clear to me whether such a functional form, both as standard logit and mixed logit, can be estimated by xlogit.
Many thanks and best,
Jesper
The text was updated successfully, but these errors were encountered: