I am doing a large registry-based study, in which I am doing Cox-regression for mortality rates in hyperthyroid individuals compared to euthyroid individuals. Furthermore, I am splitting the hyperthyroid individuals into treated and untreated individuals, as to ascertain the effect of treatment on mortality. I have the euthyroid controls in one group (gruppe=1), the treated hyperthyroid individuals as gruppe=2, and the treated hyperthyroid individuals as gruppe=3. being in the treated group is defined as having redeemed a prescription for antithyroid medication at any point during the follow-up period.
My stset looks like this
My cox regression takes into consideration the age, sex and charlson comorbidity score:
Similar calculations have been done in another study.
Recently one of my supervisors pointed out that we might want to take in to consideration the time between the start of followup and the start of treatment, as the time being untreated can have an effect on mortality. We thus decided to have the treated hyperthyroid individuals function as untreated hyperthyroid individuals until the day treatment started. We have considered doing this by utilizing stsplit:
"eksd" being the date of treatment start (redeemed prescription). People who have not received treatment thus have eksd=. and have not been split.
I changed the group variable "gruppe" to 0 for the euthyroid individuals (controls), and 1 for the hyperthyroid individuals.
I now want to stcox the set, and compare the treated hyperthyroid individuals to the euthyroid individuals, the treated hyperthyroid individuals compared to the euthyroid individuals, and the treated compared to the untreated.
I am unsure how to go about this, specifically which variables to include, how to separate the treated and untreated hyperthyroid individuals, and if this even is a statistically valid approach. If not, suggestions for other approaches are much appreciated.
My stset looks like this
My cox regression takes into consideration the age, sex and charlson comorbidity score:
Similar calculations have been done in another study.
Recently one of my supervisors pointed out that we might want to take in to consideration the time between the start of followup and the start of treatment, as the time being untreated can have an effect on mortality. We thus decided to have the treated hyperthyroid individuals function as untreated hyperthyroid individuals until the day treatment started. We have considered doing this by utilizing stsplit:
"eksd" being the date of treatment start (redeemed prescription). People who have not received treatment thus have eksd=. and have not been split.
I changed the group variable "gruppe" to 0 for the euthyroid individuals (controls), and 1 for the hyperthyroid individuals.
I now want to stcox the set, and compare the treated hyperthyroid individuals to the euthyroid individuals, the treated hyperthyroid individuals compared to the euthyroid individuals, and the treated compared to the untreated.
I am unsure how to go about this, specifically which variables to include, how to separate the treated and untreated hyperthyroid individuals, and if this even is a statistically valid approach. If not, suggestions for other approaches are much appreciated.
Comment