Hi
I am reposting this because i did not get any replies before.
I am trying to model migration within Sweden using a nested logit model and I have divided Sweden into 28 different regions. In the first step, I am modeling the choice to either stay in the region where individuals are currently residing or to move from the region as a function of indivudual characterists. In the second step, I am trying to model the choice of destination for those who moved as a function of characteristics at the destination areas.
When trying to run the model I get the "All constraints invalid message" and the program stops.
Because the stay-option is degenerate I use the constraint: constraint 1 [stay_tau]_cons=1
I have managed to make the nested logit model converge in other settings, so I am pretty sure that there is nothing wrong with how I enter the commands. I also employ the nlogitgen command before trying to run the model.
I am wondering whether this problem has anything to do with the fact that the sets of alternatives differs between indiviudals who move from different regions. For example, those who move from region number 2 can not chose to move to region 2 in the setup of destinations choices (because they are moving from region 2). And those who move from region number 3, can choose to move to region 2 (and to other regions) but not to region nr 3 (because thats where they are moving from.) Could this be the explanation?
Any input would be of great help!
Thanks!
Peter
Related Posts with nested logit - all constraints invalid message
Help with Logit in panel data and measuring a time invariant independent variable.HI statalist, I'm trying to run a panel data regression where the dependent variable is a binary va…
Testing if coefficients are statistically different from each otherHi, I have run the two regressions below. The method variables are different for Dry Recycling and C…
Plotting variable around certain thresholdHi Statalist members, I am working with survey balanced panel data covering 32 waves. I am analyzin…
Replacing valuesHi all, I have a dataset containing values ranging from 1 to 3. I'd like to replace all the 1 to 3,…
Instrumental Variable with binary endogenous variable and interactions and fixed effects - please help!Hello everybody, I please need your help, since I don't know how to proceed with my research. I'm…
Subscribe to:
Post Comments (Atom)
0 Response to nested logit - all constraints invalid message
Post a Comment