Hi Statalist
I am trying to make a table via the table builder (table of frequencies, summaries, and command results). I want to include some elements from my cox proportional hazards model (Hazard ratios, SE and 95%-CI). To do this I have made a command for the model and this works as it should.
My problem arises as I also want to include other elements in the table such as number of events but when I put in extra variables in the column tab it gets included in the model which it of course should not.
Command: stcox i.sex i.region, vce(robust)
Input in table builder's column variables: result events
"result" is Stata's output of the cox model.
How can I solve this?
I am trying to make a table via the table builder (table of frequencies, summaries, and command results). I want to include some elements from my cox proportional hazards model (Hazard ratios, SE and 95%-CI). To do this I have made a command for the model and this works as it should.
My problem arises as I also want to include other elements in the table such as number of events but when I put in extra variables in the column tab it gets included in the model which it of course should not.
Command: stcox i.sex i.region, vce(robust)
Input in table builder's column variables: result events
"result" is Stata's output of the cox model.
How can I solve this?

Comment