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

How to plot subgroup data? #21

Open
fittken opened this issue Apr 5, 2020 · 3 comments
Open

How to plot subgroup data? #21

fittken opened this issue Apr 5, 2020 · 3 comments

Comments

@fittken
Copy link

fittken commented Apr 5, 2020

Hi @NikNakk and thank you for your great package!

I want to plot a subgroup analysis to show treatment effects in different subgroups, for example as shown here

My question is quite similar to this one here:
#11

For example the subgroup age >65 years and the subgroup <65 years, they both need a hazard ratio to be displayed without a reference.

Do you get these hazard ratios in this example by obtaining two univariate Cox regression analysis for patients >65 years and for patients <65 years?

If I am right with my guess, is there a way to perform the analysis easily with "coxph" and "forest_model", I mean, to transfer all the specific hazard ratios for each subgroup and also to calculate the p for interaction?

Thank you for you help and stay healthy!

@ShixiangWang
Copy link
Contributor

Try ezcox?

@NikNakk
Copy link
Owner

NikNakk commented Jul 20, 2020

@fittken Did @ShixiangWang's response answer your issue?

@ShixiangWang
Copy link
Contributor

https://shixiangwang.github.io/ezcox/reference/ezcox_group.html this fun is worth to take a try

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

3 participants