Re: [R] COXPH: How should weights be entered in coxph, as the log of the weight or as the weight on its original scale?

2021-05-19 Thread David Winsemius
Perhaps this package could be considered https://cran.r-project.org/web/packages/hrIPW/hrIPW.pdf That packages author also has a 2016 article in Statistics in Medicine on the properties of estimates from such analyses that might be useful. — David Winsemius, MD, MPH Sent from my iPhone > On

[R] COXPH: How should weights be entered in coxph, as the log of the weight or as the weight on its original scale?

2021-05-19 Thread Sorkin, John
When running a propensity score weighted analysis using coxph(), are the weights entered as the log of the weights, or as the weights on the original scale, i.e. coxph(Surv(time,status)~group,weights=weights ,data=mydata) or coxph(Surv(time,status)~group,weights=log(weights),data=myda