suchestoncampbelllab / gwasurvivr

GWAS Survival Package in R
11 stars 12 forks source link

Allowing for interval survival time #34

Open emiuga opened 11 months ago

emiuga commented 11 months ago

Dear developers,

I am trying to use your software for an analysis using interval follow up time (e.g., delayed study entry). Currently, your package only allows to input follow up time (time.to.event). As you might have noticed, I made an extension of your repository and created functions to allow entering interval time in the analysis. More specifically, to create a survival object: Surv(time, time2, event). I only implemented this for the Plink input end-function. See: https://github.com/emiuga/gwasurvivr_intime

Do you think this is a correct implementation? the analysis seems to run well, but would be good to know if you think this modification would affect the analysis in some way.

I hope could update your package to analyze for this type data, to use instead of my temporary trick.

Thanks a lot for creating this package!

Sincerely yours, Emilio

aarizvi commented 8 months ago

@emiuga I apologize for not seeing this! This is a super cool implementation and I can see it being very useful. I use delayed entry models a lot for the work I do professionally, so very pleased to see someone take a crack at this.

@emiuga would you consider adding this as a PR to our repo?

@AliSajid - if you ever have time we should look into adding this to the package.