UPDATED with dataset and code: dataset code
I have a Cox regression and an ATF regression with the same covariates and dependent variables in R; that is, the only difference between the two is the modeling function. I'm trying to get the confidence interval for each parameter estimate using confint()
. I'm not referring to the confidence bands of the survival curve/probability, but rather the CI around each parameter estimate.
The Cox model:
os_coxph <- coxph(os_surv ~ age_lot1 + gendermale + racegpBlack + racegpOther
+ risk_cytogenetic1 + risk_cytogenetic2
+ dxStageI + dxStageII + dxStageIII + dxLeukemia
+ lot_rxcnt_1_1 + sctLOT1 + sctLater + lag46plus + cluster(UID),
weights=wt, data = test)
confint(os_coxph)
The ATF model (Weibull distribution):
os_tfw1 <- survreg(os_surv ~ age_lot1 + gendermale + racegpBlack + racegpOther
+ risk_cytogenetic1 + risk_cytogenetic2
+ dxStageI + dxStageII + dxStageIII + dxLeukemia
+ lot_rxcnt_1_1 + sctLOT1 + sctLater + lag46plus + cluster(UID),
weights = wt, data = test)
confint(os_tfw1)
The former (Cox) outputs:
2.5 % 97.5 %
age_lot1 0.01868637 0.1679876
gendermale -0.66575169 0.6323086
racegpBlack -0.90640810 4.2957683
etc.
All as expected. But the latter (ATF) outputs full of NAs:
2.5 % 97.5 %
(Intercept) NA NA
age_lot1 NA NA
gendermale NA NA
racegpBlack NA NA
I also have a similar logistic regression model and it has no problem outputting the confidence intervals for the parameter estimates.
Is confint()
unable to take ATF models as an argument? Or is there something I'm missing? Is there an alternative that works on ATF models fit with survreg
? TIA.