I am running sequential logistic regression to infer about usage of drug on crime. there are 4 waves of interviews. I am trying to construct tree at which I am totally confused.
First I define my two transitions as 0000, and 0111, and then run seqlogit for the tree (1:2) which didnt give desired results (coef<0). I am just wondering if I am making mistakes at the stage of constructing tree
g drugtrans =1 if ayanydrug==0 & byanydrug==0 & cyanydrug==0 & dyanydrug==0 (948 missing values generated) .
replace drugtrans =2 if ayanydrug==0 & byanydrug==1 & cyanydrug==1 & dyanydrug==1 (60 real changes made) .
First I define my two transitions as 0000, and 0111, and then run seqlogit for the tree (1:2) which didnt give desired results (coef<0). I am just wondering if I am making mistakes at the stage of constructing tree
g drugtrans =1 if ayanydrug==0 & byanydrug==0 & cyanydrug==0 & dyanydrug==0 (948 missing values generated) .
replace drugtrans =2 if ayanydrug==0 & byanydrug==1 & cyanydrug==1 & dyanydrug==1 (60 real changes made) .
seqlogit drugtrans i.respsex i.arst, tree (1:2) | ||
Transition tree: | ||
Transition 1: 1 : 2 | ||
Computing starting values for: | ||
Transition 1 | ||
Iteration 0: log likelihood = -249.33364 | ||
Iteration 1: log likelihood = -249.33364 | ||
Number of obs = | 1,649 | |
LR chi2(3) = | 16.75 | |
Log likelihood = -249.33364 | Prob > chi2 = | 0.0008 |
drugtrans Coef. Std. Err. z | P>z [95% Conf. | Interval] |
respsex | ||
female .1750619 .2702427 0.65 | 0.517 -.3546041 | .7047279 |
arst | ||
2 -.5273682 1.163988 -0.45 | 0.650 -2.808742 | 1.754006 |
3 -2.129618 .4539332 -4.69 | 0.000 -3.019311 | -1.239925 |
_cons -1.367098 .4349749 -3.14 | 0.002 -2.219633 | -.5145628 |
Comment