Skip to content

Instantly share code, notes, and snippets.

View doctorkid's full-sized avatar

Dr.KID doctorkid

View GitHub Profile
clear
input str16 author year RD lcl ucl,
"Malka" 1990 0.23 0.01 0.49
"Nakayama" 1977 0.17 0.03 0.31
"Zanini" 1974 0.12 -0.24 0.49
end
gen serd = (ucl-lcl)/4
metan RD serd, random label(namevar=author) textsize(200) xlab(0.25, 0.50, 0.75)
clear
input trial str16 trialnam str16 authors startyr latitude cases1 tot1 cases0 tot0
1 "Canada" "Ferguson & Simes" 1933 55 6 306 29 303
2 "Northern USA" "Aronson" 1935 52 4 123 11 139
3 "Northern USA" "Stein & Aronson" 1935 52 180 1541 372 1451
4 "Chicago" "Rosenthal et al" 1937 42 17 1716 65 1665
5 "Chicago" "Rosenthal et al" 1941 42 3 231 11 220
6 "Georgia (School)" "Comstock & Webster" 1947 33 5 2498 3 2341
7 "Puerto Rico" "Comstock et al" 1949 18 186 50634 141 27338
8 "UK" "Hart & Sutherland" 1950 53 62 13598 248 12867
clear
input id str16 author year case1 tot1 case0 tot0 dose
1 "Eskola" 1990 4 58000 37 56000 3
2 "Lagos" 1996 4 48080 40 46948 3
3 "Mulholland" 1997 5 1397 9 1098 1
3 "Mulholland" 1997 5 1397 9 1098 2
3 "Mulholland" 1997 10 21490 40 21498 3
4 "Santosham" 1991 0 532 8 505 1
4 "Santosham" 1991 1 2588 22 2602 2
4 "Santosham" 1991
*BC 2nd
clear
input time n_male n_female p_bw_male p_bw_female p_bd_male p_bd_female p_bn_male p_bn_female p_all
9 34 38 0.08 0.12 0 0 0 0 0
12 46 50 0.32 0.39 0 0 0 0 0
18 85 79 0.57 0.65 0.10 0.16 0.02 0.06 0.028
24 152 150 0.73 0.83 0.17 0.22 0.07 0.09 0.054
36 162 161 0.96 0.98 0.18 0.18 0.16 0.22 0.109
48 163 161 0.98 0.97 0.89 0.89 0.86 0.86 0.766
60 143 146 0.98 0.99 0.92 0.92 0.86 0.89 0.855
clear
*Data input
input time n_male n_female p_bw_male p_bw_female p_bd_male p_bd_female p_bn_male p_bn_female
9 34 38 0.08 0.12 0 0 0 0
12 46 50 0.32 0.39 0 0 0 0
18 85 79 0.57 0.65 0.10 0.16 0.02 0.06
24 152 150 0.73 0.83 0.17 0.22 0.07 0.09
36 162 161 0.96 0.98 0.18 0.18 0.16 0.22
48 163 161 0.98 0.97 0.89 0.89 0.86 0.86
60 143 146 0.98 0.99 0.92 0.92 0.86 0.89
clear
input str16 Names OR LB UB
"Michell EA" 2.02 1.35 3.04
"Klonhoff-Cochen H" 1.21 0.59 2.48
"Brooke H" 2.90 0.75 11.26
"Blair PS, 1999" 9.78 4.02 23.83
"Hauck FR" 2.00 1.21 3.32
"Arnestad M" 1.66 0.57 4.85
"Li DK" 4.50 1.30 15.10
"Tappin D" 3.36 1.67 6.73