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

Improving pairwise_survdiff() to handle a formula with multiple variables #213

Closed
kassambara opened this issue May 12, 2017 · 1 comment
Closed

Comments

@kassambara
Copy link
Owner

No description provided.

kassambara added a commit that referenced this issue May 12, 2017
kassambara added a commit that referenced this issue May 12, 2017
@kassambara
Copy link
Owner Author

Now, pairwise_survdiff() supports a formula with multiple variables.

library(survival)
library(survminer)
pairwise_survdiff(Surv(time,status) ~rx+adhere, data = colon)
	Pairwise comparisons using Log-Rank test 

data:  colon and rx + adhere 

                     rx=Obs, adhere=0 rx=Obs, adhere=1 rx=Lev, adhere=0 rx=Lev, adhere=1
rx=Obs, adhere=1     0.100            -                -                -               
rx=Lev, adhere=0     0.791            0.100            -                -               
rx=Lev, adhere=1     0.144            0.791            0.142            -               
rx=Lev+5FU, adhere=0 4.5e-06          4.5e-06          1.6e-05          4.5e-06         
rx=Lev+5FU, adhere=1 0.791            0.157            0.791            0.192           
                     rx=Lev+5FU, adhere=0
rx=Obs, adhere=1     -                   
rx=Lev, adhere=0     -                   
rx=Lev, adhere=1     -                   
rx=Lev+5FU, adhere=0 -                   
rx=Lev+5FU, adhere=1 0.083               

P value adjustment method: BH 

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

No branches or pull requests

1 participant