forestmodel
forestmodel copied to clipboard
How to plot subgroup data?
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!
Try ezcox?
@fittken Did @ShixiangWang's response answer your issue?
https://shixiangwang.github.io/ezcox/reference/ezcox_group.html this fun is worth to take a try