Hi everyone,
I am working on a project that investigates the relationship between obesity and the incidence of cancer in dialysis patients. By incorporating both baseline obesity status and chronological changes in BMI (which can happen multiple times) as time-varying covariates, the study aims to determine whether obesity impacts the risk of developing cancer and cancer-related mortality, while accounting for competing risks such as getting a transplant and non-cancer death. The analysis uses a Fine and Gray competing risks model to assess these associations.
I have attached how my data look like after I formatted each person in multiple line according to their chronological BMI changes.
This is by using
bmi_date is when the obesity status has been documented
bmi_time is when the obesity status ended
failuretype =1 is the event of interest
failure type 2 and 3 are competing risks
I then use
to fit Fine and Gray model. After this I will add other potential confounders to the model.
My questions are:
Kind Regards,
Bree
I am working on a project that investigates the relationship between obesity and the incidence of cancer in dialysis patients. By incorporating both baseline obesity status and chronological changes in BMI (which can happen multiple times) as time-varying covariates, the study aims to determine whether obesity impacts the risk of developing cancer and cancer-related mortality, while accounting for competing risks such as getting a transplant and non-cancer death. The analysis uses a Fine and Gray competing risks model to assess these associations.
I have attached how my data look like after I formatted each person in multiple line according to their chronological BMI changes.
This is by using
Code:
stset bmi_time, failure(failuretype==1) id(id) origin(startdate) scale(365.25)
bmi_time is when the obesity status ended
failuretype =1 is the event of interest
failure type 2 and 3 are competing risks
I then use
Code:
stcrreg i.obese, compete(failuretype==2 3)
My questions are:
- Is my approach correct? This is my first time working with time-varying covariates with multiple changes. I manually split the data without using the "split at failure times" method, which is often recommended. Interestingly, my Fine and Gray model shows a reduced risk for the obese cohort, while the Kaplan-Meier curve suggested an elevated risk. Could this discrepancy be due to my approach?
- The model runs very slowly, and I need to fit it multiple times to test different covariates. Is this typical, and are there any ways to improve the speed?
- For an upcoming analysis, I will have both transplant status and obesity status as time-varying covariates. Can I apply the same approach that I used here?
Kind Regards,
Bree
Comment