forestmodel icon indicating copy to clipboard operation
forestmodel copied to clipboard

How to plot subgroup data?

Open fittken opened this issue 4 years ago • 3 comments

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: https://github.com/NikNakk/forestmodel/issues/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!

fittken avatar Apr 05 '20 11:04 fittken

Try ezcox?

ShixiangWang avatar Jul 16 '20 08:07 ShixiangWang

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

NikNakk avatar Jul 20 '20 09:07 NikNakk

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

ShixiangWang avatar Jul 20 '20 10:07 ShixiangWang