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
How copy database only with variable codes into ExcelHello! Explain me please. I have a database. I need to copy the table only with the "value label" an…
Multi level models and robust clustering of SEI am using multi level modelling for hiererchical survey data (students nested within schools nested…
How to use Mata for calculations within a Stata ML evaluator program?[This is picking up on the thread I began here: https://www.statalist.org/forums/for...normal-densit…
Random effects Fractional Regression ModelHello everyone! I am planning to run a fractional regression model in the context of panel data . As…
Create indicator variable within unbalanced panelHi Statalist I have an unbalanced panel & I would like to create an indicator variable based on…
Subscribe to:
Post Comments (Atom)
0 Response to Choice Models
Post a Comment