To interested Statalist users -
I am attempting to model a student's choice of university using a conditional logit model with the asclogit package. In my data, I have individuals with different choice sets since each student is choosing from a different subset of schools.
This is an example with a structure similar to what I have in my data:
where GPA is individual i's academic quality and distance = distance from individual i to university j
Different individuals have different choice sets because not every student is considering the same school (i.e. a student may only be looking at schools within a certain distance).
The book "Microeconometrics Using Stata" says that "The asclogit command allows the choice set to vary across individuals".
I have 2 questions:
1) Can the command asclogit be actually used to estimate a conditional logit model with data like the one above (in which we have individuals with different choice sets)?
2) Do the choice sets of the individuals have to have at least one of the alternatives which is always common across the individuals? If not, how can one set a base alternative?
For example: asclogit choice distance, casevars(gpa) case(id) alternatives (university) basealternative(1)
Any comments or suggestions are appreciated (i.e. if this is not possible in asclogit are there any other packages or methods that would work?)
Thank you.
Regards,
Andrew
I am attempting to model a student's choice of university using a conditional logit model with the asclogit package. In my data, I have individuals with different choice sets since each student is choosing from a different subset of schools.
This is an example with a structure similar to what I have in my data:
Student_ID | University | Distance | GPA | Choice |
1 | 1 | 23 | 3.2 | 0 |
1 | 2 | 24 | 3.2 | 1 |
1 | 3 | 45 | 3.2 | 0 |
2 | 1 | 33 | 3.8 | 0 |
2 | 3 | 5 | 3.8 | 0 |
2 | 4 | 10 | 3.8 | 1 |
2 | 8 | 34 | 3.8 | 0 |
Different individuals have different choice sets because not every student is considering the same school (i.e. a student may only be looking at schools within a certain distance).
The book "Microeconometrics Using Stata" says that "The asclogit command allows the choice set to vary across individuals".
I have 2 questions:
1) Can the command asclogit be actually used to estimate a conditional logit model with data like the one above (in which we have individuals with different choice sets)?
2) Do the choice sets of the individuals have to have at least one of the alternatives which is always common across the individuals? If not, how can one set a base alternative?
For example: asclogit choice distance, casevars(gpa) case(id) alternatives (university) basealternative(1)
Any comments or suggestions are appreciated (i.e. if this is not possible in asclogit are there any other packages or methods that would work?)
Thank you.
Regards,
Andrew
Comment