Code:
. stcrreg contrib vx1adultHazRtHat, compete(dosedByNow==2) [ . . . ] Competing-risks regression No. of obs = 5,482 No. of subjects = 539 Failure event: dosedByNow == 1 No. failed = 194 Competing event: dosedByNow == 2 No. competing = 37 No. censored = 308 Wald chi2(2) = 5.88 Log pseudolikelihood = -1184.7533 Prob > chi2 = 0.0528 (Std. err. adjusted for 539 clusters in subject_id) ---------------------------------------------------------------------------------- | Robust _t | SHR std. err. z P>|z| [95% conf. interval] -----------------+---------------------------------------------------------------- contrib | 1.125542 .0549522 2.42 0.015 1.022831 1.238568 vx1adultHazRtHat | 1.024642 .043759 0.57 0.569 .942367 1.1141 ---------------------------------------------------------------------------------- . eststo e1, title("cr") . stcrreg contrib vx1adultHazRtHat, compete(dosedByNow==2) tvc(contrib vx1adultHazRtHat) [ . . . ] Competing-risks regression No. of obs = 5,482 No. of subjects = 539 Failure event: dosedByNow == 1 No. failed = 194 Competing event: dosedByNow == 2 No. competing = 37 No. censored = 308 Wald chi2(4) = 6.33 Log pseudolikelihood = -1184.4078 Prob > chi2 = 0.1759 (Std. err. adjusted for 539 clusters in subject_id) ---------------------------------------------------------------------------------- | Robust _t | SHR std. err. z P>|z| [95% conf. interval] -----------------+---------------------------------------------------------------- main | contrib | 1.167825 .0900622 2.01 0.044 1.003999 1.358382 vx1adultHazRtHat | 1.058385 .0715551 0.84 0.401 .9270347 1.208347 -----------------+---------------------------------------------------------------- tvc | contrib | .9991668 .0012241 -0.68 0.496 .9967704 1.001569 vx1adultHazRtHat | .9991421 .0013809 -0.62 0.535 .9964393 1.001852 ---------------------------------------------------------------------------------- Note: Variables in tvc equation interacted with _t. . eststo e2, title("tvc") . esttab e1 ---------------------------- (1) _t ---------------------------- eq1 contrib 0.118* (2.42) vx1adultHa~t 0.0243 (0.57) ---------------------------- N 5482 ---------------------------- t statistics in parentheses * p<0.05, ** p<0.01, *** p<0.001 . esttab e2 ---------------------------- (1) _t ---------------------------- main contrib 0.155* (2.01) vx1adultHa~t 0.0567 (0.84) ---------------------------- tvc contrib -0.000834 (-0.68) vx1adultHa~t -0.000858 (-0.62) ---------------------------- N 5482 ---------------------------- t statistics in parentheses * p<0.05, ** p<0.01, *** p<0.001 . esttab e1 e2 option equations() invalid specified equation name already occurs in model 2 r(198);
0 Response to (ssc) esttab and stcrreg: option equations() invalid
Post a Comment