Hi everyone,
I am facing a problem with the seqlogit command, which enables to estimate a sequential logit model.
Indeed, I want to include both constant variables over time and time-varying variables.
I understood that the dataset should be shaped in wide format, which I did, and my X variables are then in this format: x11 x12 x13 x21 x22 x23, the first number referring to the variable, and the second number referring to the time.
Here is my problem: when I type the following command:
seqlogit lastcycle sex educ hhsize single housing otheractive, ///
tree(1 : 2 3 4 5, 2 : 3 4 5, 3 : 4 5, 4 : 5) ///
x1 (amount1 sectorname1 projectage1)
I don't have any problem and Stata calculates everything, giving me the coefficients for constant variables (in the first line of the command) for all transitions, and the coefficients of specific variables for t=1 (in the line starting with x1) for the first transition only.
Now when I type the following command, which is what I want to estimate:
seqlogit lastcycle sex educ hhsize single housing otheractive, ///
tree(1 : 2 3 4 5, 2 : 3 4 5, 3 : 4 5, 4 : 5) ///
x1 (amount1 sectorname1 projectage1) ///
x2 (amount2 sectorname2 projectage2) ///
x3 (amount3 sectorname3 projectage3) ///
x4 (amount4 sectorname4 projectage4)
I got an error message saying : "Transition 1 r(2000);"
I don't understand because I added the x2 x3 x4 lines exactly the same way as x1, with the specific values of each time-varying variable I want Stata to take into account for each specific transition.
So maybe it is a syntax mistake ? I hope it is, but I don't see it... I also tried to put everything in one line instead of using slashes but it does not work either.
Could someone help me with this ?
Thank you very much !
I am facing a problem with the seqlogit command, which enables to estimate a sequential logit model.
Indeed, I want to include both constant variables over time and time-varying variables.
I understood that the dataset should be shaped in wide format, which I did, and my X variables are then in this format: x11 x12 x13 x21 x22 x23, the first number referring to the variable, and the second number referring to the time.
Here is my problem: when I type the following command:
seqlogit lastcycle sex educ hhsize single housing otheractive, ///
tree(1 : 2 3 4 5, 2 : 3 4 5, 3 : 4 5, 4 : 5) ///
x1 (amount1 sectorname1 projectage1)
I don't have any problem and Stata calculates everything, giving me the coefficients for constant variables (in the first line of the command) for all transitions, and the coefficients of specific variables for t=1 (in the line starting with x1) for the first transition only.
Now when I type the following command, which is what I want to estimate:
seqlogit lastcycle sex educ hhsize single housing otheractive, ///
tree(1 : 2 3 4 5, 2 : 3 4 5, 3 : 4 5, 4 : 5) ///
x1 (amount1 sectorname1 projectage1) ///
x2 (amount2 sectorname2 projectage2) ///
x3 (amount3 sectorname3 projectage3) ///
x4 (amount4 sectorname4 projectage4)
I got an error message saying : "Transition 1 r(2000);"
I don't understand because I added the x2 x3 x4 lines exactly the same way as x1, with the specific values of each time-varying variable I want Stata to take into account for each specific transition.
So maybe it is a syntax mistake ? I hope it is, but I don't see it... I also tried to put everything in one line instead of using slashes but it does not work either.
Could someone help me with this ?
Thank you very much !