Hello i m yannis, medical student
I m working on my thesis about the psychiatric disease in prison.
I made a meta analysis of proportion from prevalence and i want to make a forest plot with it, i don't practice metan and i did it with advices from good guy.
this is my command line:
clear
input study cases total
1 4 415
2 2 80
3 29 800
4 58 320
5 5 102
6 3 193
7 1 290
8 13 1008
9 9 1350
10 5 495
11 9 184
12 38 707
13 6 500
14 5 98
end
gen p = .
gen se = .
// get proportions and std errors
forv i =1(1)14 {
cii total[`i'] cases[`i']
qui replace p = r(mean) 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
hth,
bw
Furthermore, i think that metaprop is easier to use isn t it?
Thanx
I m working on my thesis about the psychiatric disease in prison.
I made a meta analysis of proportion from prevalence and i want to make a forest plot with it, i don't practice metan and i did it with advices from good guy.
this is my command line:
clear
input study cases total
1 4 415
2 2 80
3 29 800
4 58 320
5 5 102
6 3 193
7 1 290
8 13 1008
9 9 1350
10 5 495
11 9 184
12 38 707
13 6 500
14 5 98
end
gen p = .
gen se = .
// get proportions and std errors
forv i =1(1)14 {
cii total[`i'] cases[`i']
qui replace p = r(mean) 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
hth,
bw
Furthermore, i think that metaprop is easier to use isn t it?
Thanx
Comment