如何使用Stata画出网状meta分析中漂亮的网络图?

准备好数据

study int1 int2 sample
1 Ripseridone Placebo 130
2 Topiramate Placebo 101
3 Ziprasidone Placebo 1002
4 Ziprasidone Ripseridone 103
5 Ziprasidone Placebo 104
6 Ziprasidone Ripseridone 105
7 Topiramate Ziprasidone 106
8 Topiramate Asenapine 107
9 Asenapine Placebo 120
10 Ripseridone Placebo 109
11 Topiramate Placebo 110
12 Ziprasidone Placebo 111
13 Ziprasidone Ripseridone 112
14 Ziprasidone Placebo 113
15 Ziprasidone Ripseridone 114
16 Topiramate Ziprasidone 115
17 Topiramate Asenapine 116
18 Asenapine Placebo 117
19 Ripseridone Placebo 118
20 Topiramate Placebo 119
21 Ziprasidone Placebo 120
22 Ziprasidone Ripseridone 121
23 Topiramate Ziprasidone 122
24 Topiramate Asenapine 123
25 Ziprasidone Ripseridone 124
26 Topiramate Ziprasidone 125
27 Topiramate Asenapine 126
28 Asenapine Placebo 127
29 Ripseridone Placebo 128
30 Topiramate Placebo 129
31 Ziprasidone Placebo 130

将数据复制到Stata中

安装network命令

在Stata命令窗口中输入:ssc install network

输入操作命令

networkplot int1 int2

查看结果

还可以变和点的颜色,大家觉怎么美观就怎么改

networkplot int1 int2,edgecol(blue)nodecolor(red)

查看结果:

好了,这次分享到这里,希望本次推文对大家有所帮助。

(0)

相关推荐