Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Including 'cluster' in the coxph call #31

Open
lucavd opened this issue Aug 26, 2023 · 1 comment
Open

Including 'cluster' in the coxph call #31

lucavd opened this issue Aug 26, 2023 · 1 comment

Comments

@lucavd
Copy link

lucavd commented Aug 26, 2023

Hi, I'm using your package for a GWAS on patients collected in different centers.

Since the workforce behind the computation is the survival package, I was wandering if it is possible (and maybe how) to include the term "cluster" in the coxph call.

I've seen the you used the coxph.fit function to fit the models, but I can not see how to incorporate the cluster parameter in the function. Usually, I would have called coxph(Surv(time, event) ~ covariates + cluster(center), but I'm not sure on how to modify your code to make this happen.

I'll appreciate your help and congratulations for the wonderful package

@aarizvi
Copy link
Member

aarizvi commented Dec 20, 2023

We can add this to our list of future features. If you wanted to try yourself and add a PR you could take a look at coxParam.R function and extend that to work with cluster .

I'm also wondering why you can't just include your centers as a covariate in the model?

Thanks @lucavd

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants