Dear all,
I am learning how to estimate Choice models in Stata 16. I have the following data example extracted from a cross sectional dataset of a 123 Survey.
I want to explain sector of employment choice (variable : SECTAT). When I comset the data , I get the following error message.
all choice sets have only one alternative
r(2000);
code used : cmset id SECTACT
#
[CODE]
* Example generated by -dataex-. To install: ssc install dataex
clear
input byte SECTACT float wage byte female float(maristatus age years_edu formal exper) byte FORIN
1 52127.18 1 2 31 17 1 5 1
3 169000 0 2 44 11 1 17 1
1 600000 0 2 37 16 1 5 1
2 378407.3 0 6 59 17 1 31 1
4 300000 1 1 25 2 2 2 2
end
#
I am wondering if there is a way to reshape the dataset so as to be able to comset it.
Thank you for your help.
Jean
Related Posts with Choice Models
Moderated mediation using GSEM from a difference-in-difference approach - calculating iniDear Statalist-ers, I hope this message finds everyone well. I am currently running some Difference…
malmq.ado could not work with the save(filename) option, anyone know what's wrong with the ado file? ado file and datasets attached I use malmq.ado to calculate malmquist index in stata 15, it works OK.But when I want to save resul…
Plotting non linearities in regression and interaction effects from reghdfeHello everyone, First of all, thank you in advance for any answers to this post. It's very rare to …
Time-lagged variable for cross-sectional dataHi, I have a seemingly simple recoding problem, which I could not solve by reading the documentatio…
Plotting non linearities in regression (as dy/dx) and interaction effects from reghdfe (multiple fixed effects)Hello everyone, First of all, thank you in advance for any answers to this post. It's very rare to …
Subscribe to:
Post Comments (Atom)
0 Response to Choice Models
Post a Comment