-
Notifications
You must be signed in to change notification settings - Fork 13
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
Plotting categorical variables without reference #11
Comments
Thanks for the feedback. This should mirror what you get when you run `summary` on your coxph model, except that doesn’t display the reference level. In effect, the hazard ratios for the other levels of the factor are being compared to the reference level, so for PCLAF_BM the hazard ratio comparing those with 1 compared to 0 is 0.9 and for 2 compared to 0 it is 2.26. What were you expecting to see?
BW
Nick
… On 21 Jun 2018, at 18:05, jgarces ***@***.***> wrote:
Hi @NikNakk, I like so much your package, it's very easy to use.
I'm doing a survival analysis with categorical variables (I've categorized a numeric value of a gene to different expression levels) and, when I draw the forest_model plot, the first group is used as reference... could you explain why (I though that was a simple ratio) and is there any way to avoid this and take it as another normal variable?
Thanks a lot in advance!
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub, or mute the thread.
|
Hi @NikNakk, you're right... I didn't think that reference came from previous cox regression not from (obviously) the figure. Thanks anyway for your help! |
Hi guys,
Thank you for helping me! |
Hi @jgarces02 , Sorry, I think my question was not specific enough. I want to create a forest plot in order to show a subgroup analysis, like this one For example the subgroup age >65 years and the subgroup <65 years, they both have a hazard ratio displayed.
I really appreciate your effort! Thank you for your help! |
That's a good point. I don't have any idea how they performed this analysis, I've took a glance to their paper and it's not clear for me, sorry. I guess that, as you said in point 1, they might have made two (or more) Cox regressions interchanging the reference group in each one and obtaining two different HR (and the corresponding P-value)... but this's only a supposition, maybe you can ask to the corresponding author. I don't know how PD: I think the interaction you mentioned is another kind of topic, it must be included in the cox analysis itself (some like |
Hi @NikNakk, I like so much your package, it's very easy to use.
I'm doing a survival analysis with categorical variables (I've categorized a numeric value of a gene to different expression levels) and, when I draw the forest_model plot, the first group is used as reference... could you explain why (I though that was a simple ratio) and is there any way to avoid this and take it as another normal variable?
Thanks a lot in advance!
The text was updated successfully, but these errors were encountered: