3
$\begingroup$

I wish to perform a drug survival analysis. Specifically, I wish to see if there are sex differences in drug survival in my dataset. One advantage of my dataset is that it is a large cohort, since fifteen different countries contributed to its creation. However, this also results in statistically significant heterogeneity. One option for me would be to create a KM-curve and stratify by country because of this heterogeneity. However, I was wondering if an option exists to "correct" for countries inside the KM-curve.

Would love to hear if something like this is possible and/or whether this is wise.

$\endgroup$

2 Answers 2

5
$\begingroup$

To do an adequate job on the problem requires significant background study in the field of survival analysis. In particular you should get familiar with the Cox proportional hazards model as a generalization of the Kaplan-Meier approach. Then you would know how to adjust for sex as a covariate, and how to take regional differences into account. If outcomes are different across regions, ignoring region would be a mistake. You have two ways to model variables with the Cox model: as covariates and as stratification factors.

$\endgroup$
3
  • $\begingroup$ Thanks for the response. Also heard it is possible to create a propensity matched or weighted cohort based on country as a covariate. Then use KM approach. Would your advice be this approach or the Cox proportional hazard approach? $\endgroup$
    – Pashtun
    Commented Sep 19, 2021 at 13:47
  • $\begingroup$ Weighted estimates are less informative than country-conditional estimates, and propensity scores only need to be considered when you have a very large number of adjustment variables in comparison to the number of outcome events. $\endgroup$ Commented Sep 19, 2021 at 21:47
  • $\begingroup$ Thank you for your response. I would like to share this link for anyone who is looking to adjust survival curves using a cox proportional hazard model using R: rpkgs.datanovia.com/survminer/reference/ggadjustedcurves.html $\endgroup$
    – Pashtun
    Commented Sep 20, 2021 at 17:01
2
$\begingroup$

Frank's answer mentions stratification, and that was the route I was pursuing when I suggested you move your earlier closed question to CV.com. As I suggested in a comment you did get an answer from a smarter respondent than I am. If you ran separate models on each country (simple to do in R) you might get a better idea of the distribution of estimates. I would also think that using age as a covariate would be essential. Frank's text "Regression Modeling Strategies" has a wealth of material on dealing with non-linear effects of covariates.

Your question had been how to build a model with weighting in a manner that might recognize the heterogeneity. Here is a stratified model build based on the tiny test set you offered

library(survival)
gender <- as.factor(c("Female", "Male", "Female", "Male", "Male", "Male", "Female", "Female", "Female", "Male"))
country <- as.factor(c("US", "US", "GB", "GB", "GB", "US", "GB", "US", "GB", "US"))
time <- c(5, 10, 12, 15, 20, 9, 14, 18, 24, 20)
event <- c(1, 1, 1, 1, 1, 0, 0, 1, 0, 1)
df <- data.frame(gender, country, time, event)

km.model2
Call:
coxph(formula = Surv(time = time, event = event) ~ gender + strata(country), 
    data = df)

              coef exp(coef) se(coef)      z    p
genderMale -0.2321    0.7929   0.8327 -0.279 0.78

Likelihood ratio test=0.08  on 1 df, p=0.7807
km.model2 <- survfit(Surv(time = time, event = event) ~ gender +strata(country), data = df)

The usual assumptions about Cox models with a simple continuous covariate apply, but here two separate models have been constructed and a weighted "average" of their coefficients have been returned. This will not account for all forms of non-proportionality. For testing you might also need to assess whether the effect is constant over time as the model assumes using the cox.zph function. Therneau & Gambsch's text "Modeling Survival Data" has an excellent chapter.

$\endgroup$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.