来自 cox 对象的森林图 [英] Forest plot from cox object

查看:40
本文介绍了来自 cox 对象的森林图的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

请宽容:) 我是 R 的虚拟用户,我正在使用代码和示例数据来学习如何制作上一篇文章中显示的森林图 -

在相对风险量表上尝试降低 0 范围是不明智的.将意味着对数转换尺度上的 -Inf 值.尝试使用较低的值,比如 log(0.001),会混淆我测试中漂亮的刻度打印.

Please be tolerant :) I am a dummy user of R and I am using the code and sample data to learn how to make forest plot that was shown in the previous post -

Optimal/efficient plotting of survival/regression analysis results

I was wondering is it possible to set user-defined x-axis scale with the code shown there? Up to now x a-axis scale is defined somehow automatically. Thank you for any tips.

解决方案

I'm unimpressed with the precision of the documentation since one might assume that the limits argument would be values on the relative risk scale rather than on the log-transformed scale. One gets a ridiculous result if that is done. That quibble not withstanding, it's relatively easy to use that parameter to created an expanded plot:

install('devtools')   # then use it to get current package
# executing the install and load of the package referenced at the top of that answer
print(forest_model(lung_cox, limits=log( c(.5, 50) ) ))

Trying for a lower range of 0 on the relative risk scale is not sensible. Would imply a -Inf value on hte log-transformed scale. Trying for lower value, say log(0.001), confuses the pretty printing of the scale in my tests.

这篇关于来自 cox 对象的森林图的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆