全部版块 我的主页
论坛 计量经济学与统计论坛 五区 计量经济学与统计软件 Stata专版
5891 3
2013-09-16
悬赏 300 个论坛币 已解决
forest.png
我作了一个森林图,代码如下:
metan oddsratio lowercl uppercl, randomi label(namevar=study) by(subgroup) nosubgroup nohet nowt nooverall null (1) xlabel (0.5, 2.5) texts(140)
结果如上,
但因为我的X坐标小于1的几乎没有数值,但forest plot左右是对称的,我想将左边一大边空白去掉,使得左边的subgroup更靠近X=1这条线,怎么限定X轴的范围,使得左右不对称?
数据见附件
subgroup depression.rar
大小:(1013 Bytes)

 马上下载

本附件包括:

  • subgroup depression.dta

最佳答案

hplcdadong 查看完整内容

* "randomi" in your original command does not influence your results in the graph, the following should make your graph beautiful. You can also make your own adjustment based on this. metan oddsratio lowercl uppercl, label(namevar=study) /// by(subgroup) nosubgroup nohet nowt nooverall null (1) xlabel (0.8, 2.8) texts(160) /// effect(Odds Ratio) force
二维码

扫码加我 拉你入群

请注明:姓名-公司-职位

以便审核进群资格,未注明则拒绝

全部回复
2013-9-16 11:29:16
* "randomi" in your original command does not influence your results in the graph, the following should make your graph beautiful. You can also make your own adjustment based on this.

metan oddsratio lowercl uppercl, label(namevar=study)  ///
by(subgroup) nosubgroup nohet nowt nooverall null (1) xlabel (0.8, 2.8) texts(160)   ///
effect(Odds Ratio)  force
二维码

扫码加我 拉你入群

请注明:姓名-公司-职位

以便审核进群资格,未注明则拒绝

2013-9-16 12:45:56
这个图有问题!
二维码

扫码加我 拉你入群

请注明:姓名-公司-职位

以便审核进群资格,未注明则拒绝

2013-9-16 12:53:28
dxystata 发表于 2013-9-16 12:45
这个图有问题!
请问什么问题
二维码

扫码加我 拉你入群

请注明:姓名-公司-职位

以便审核进群资格,未注明则拒绝

相关推荐
栏目导航
热门文章
推荐文章

说点什么

分享

扫码加好友,拉您进群
各岗位、行业、专业交流群