I am trying to use conditional logit model in order to see why people go to a specific neighborhood. to do so I have people characteristics (age and gender which is as1 and 2) and also the place characteristics(the employment rate).
I used the following syntax:
asclogit choice employment, casevars(gender age) case(id) alternatives(place)
a sample of my data is :
| id | choice | gender | age | employment | place |
| 1 | 0 | 0 | 0 | 0.16 | 1 |
| 1 | 0 | 0 | 0 | 0.3 | 2 |
| 1 | 1 | 2 | 31 | 0.15 | 3 |
| 2 | 1 | 1 | 40 | 0.16 | 1 |
| 2 | 0 | 0 | 0 | 0.3 | 2 |
| 2 | 0 | 0 | 0 | 0.15 | 3 |
| 3 | 0 | 0 | 0 | 0.16 | 1 |
| 3 | 1 | 1 | 23 | 0.3 | 2 |
| 3 | 0 | 0 | 0 | 0.15 | 3 |
| 4 | 1 | 2 | 45 | 0.16 | 1 |
| 4 | 0 | 0 | 0 | 0.3 | 2 |
| 4 | 0 | 0 | 0 | 0.15 | 3 |
| 5 | 0 | 0 | 0 | 0.16 | 1 |
| 5 | 0 | 0 | 0 | 0.3 | 2 |
| 5 | 1 | 1 | 30 | 0.15 | 3 |
but I got this message:
"no cases remain after removing invalid observation"
can anyone help me?
0 Response to conditional logit model
Post a Comment