- 60
- 0
- 约1.12千字
- 约 10页
- 2021-10-21 发布于天津
- 举报
用 stata 进行单个率 meta 分析程序总结
感谢版主对我的方法进行验证,这里整理一下方面大家研究
谷歌的程序 (标红部分, 分批录入 stata12.0.
clear
input study cases total
1 20 1000
2 40 5000
3 30 1500
4 25 3300
end
gen p = .
gen se = .
// get proportions and std errors
forv i =1(1)4 { cii total[i] cases[i] qui replace p = r(mea n) in i qui replace se = r(se) in i // get the inverse variance-weighted proportion // use the official Stata -vwls- command gen cons =1 vwls p cons, sd(se) // use the user written -metan- command // for fixed-effects meta-analysis metan p se, nograph fixed // for random-effects meta-analysis metan p se, nograph random
我的数据,用
原创力文档

文档评论(0)