Dear all,
I'm running Stata 17. Currently I'm working on a matched cohort study investigating the association between exposure A and outcome B, adjusting for the covariate C. Using Cox regression I have obtained an adjusted hazard ratio (aHR) for the whole population. My code for this is stcox A C. For descriptive purposes I also report aHRs stratified by sex using this code: stcox A C if sex==1 and stcox A C if sex==2.
What I want to do is to do a formal test for heterogeneity between these stratified analysis. Does anyone know how to this? I read somewhere that -epitab- could be useful but I don't know how to apply this.
Best wishes,
David
I'm running Stata 17. Currently I'm working on a matched cohort study investigating the association between exposure A and outcome B, adjusting for the covariate C. Using Cox regression I have obtained an adjusted hazard ratio (aHR) for the whole population. My code for this is stcox A C. For descriptive purposes I also report aHRs stratified by sex using this code: stcox A C if sex==1 and stcox A C if sex==2.
What I want to do is to do a formal test for heterogeneity between these stratified analysis. Does anyone know how to this? I read somewhere that -epitab- could be useful but I don't know how to apply this.
Best wishes,
David
