I want to export my spsurv analysis result to Excel format. I use different models according to the main independent variable used (in this case, the price of cigarettes by type). The following is the code that I use and the resulting Excel output.
Code:
foreach y in kretek fkretek white {
spsurv smoke_t avgprice_`y'_1000 $cov , id(id) seq(t) eform difficult trace iterate(30) cpr0(4)
outreg2 using "$table/prelim/2019_spsurv_cig_`y'.xls", eform adds(Pr(never fail), e(curep)) replace nose
}
Output:

I want to know what code I should change if I want to omit column C and move the cure probability coefficient to cell B13 (under the constant coeff.) as shown in the image below.
Thank you!
Code:
foreach y in kretek fkretek white {
spsurv smoke_t avgprice_`y'_1000 $cov , id(id) seq(t) eform difficult trace iterate(30) cpr0(4)
outreg2 using "$table/prelim/2019_spsurv_cig_`y'.xls", eform adds(Pr(never fail), e(curep)) replace nose
}
Output:
I want to know what code I should change if I want to omit column C and move the cure probability coefficient to cell B13 (under the constant coeff.) as shown in the image below.
Thank you!
Comment