Dear Statalist,
I want to calculate the time-varying coefficients using Cox model. For example, I am investigating the association between smoking at baseline (yes/no) and the risk of stroke. I would like to calculate the hazard ratios during different follow-up intervals (i.e. <10, 10-20, and >20 years).
Question 1: I know I can use the tvc and texp option in stcox to calculate time-varying coefficients for two stratified periods using texp(_t>10) . But for three (or more) stratified intervals (e.g. <10, 10-20, and >20 years), can I still use the texp option? if yes, how should I specify the expression in the texp?
Question 2: Or do I need to use the stsplit command? My thought is to split the follow-up time into three intervals: < 10, 10-20 and >20 years, and then fit Cox model separately for each interval. Also, if I want to test if the hazard ratios are the same over the three intervals, can I include an interaction term between smoking and group of intervals in Cox model?
Question 3: I spot many papers in the top journals state "the Proportional Hazard assumption is not violated" but at the same time, they present hazard ratios at stratified follow-up intervals. Isn't this a bit contradictive? If the PH assumption holds, the hazard ration should be constant across the whole follow-up period. What is the possible rationale for stating "the Proportional Hazard assumption is not violated" but also presenting hazard ratios at different follow-up intervals?
Thank you very much.
I want to calculate the time-varying coefficients using Cox model. For example, I am investigating the association between smoking at baseline (yes/no) and the risk of stroke. I would like to calculate the hazard ratios during different follow-up intervals (i.e. <10, 10-20, and >20 years).
Question 1: I know I can use the tvc and texp option in stcox to calculate time-varying coefficients for two stratified periods using texp(_t>10) . But for three (or more) stratified intervals (e.g. <10, 10-20, and >20 years), can I still use the texp option? if yes, how should I specify the expression in the texp?
Question 2: Or do I need to use the stsplit command? My thought is to split the follow-up time into three intervals: < 10, 10-20 and >20 years, and then fit Cox model separately for each interval. Also, if I want to test if the hazard ratios are the same over the three intervals, can I include an interaction term between smoking and group of intervals in Cox model?
Question 3: I spot many papers in the top journals state "the Proportional Hazard assumption is not violated" but at the same time, they present hazard ratios at stratified follow-up intervals. Isn't this a bit contradictive? If the PH assumption holds, the hazard ration should be constant across the whole follow-up period. What is the possible rationale for stating "the Proportional Hazard assumption is not violated" but also presenting hazard ratios at different follow-up intervals?
Thank you very much.

Comment