23 Mar 2006 11:45 made by cr_cephsample
23 Mar 2006 11:45 Made by use merge9504i | drop if eligible_control==0 & case==0 | save
Includes criteria that controls must have complete f/u
12 Jan 2007 15:44 made by cr_cephsample
12 Jan 2007 15:44 Made by use merge9504i | drop if eligible_control==0 & case==0 | save
ggen birth_wt_kg=birth_wt/1000
Generated 6 Nov 2006 14:10
Made with cr_photo9504i
Made with cr_labs9504.do
Generated 18 Jan 2006 11:19
Generated 19 Jan 2006 15:15
Made with cr_merge9504i
3 Oct 2005 11:02 this is exactly the same as the 2May05 version, just resaved to give Mike K permissions
ggen xf4_wi48h_of_ceph3 = age_tb_eqf4 > age_pt_wi3_first & age_tb_eqf4 <. & (age_tb_eqf4- age_pt_wi3_first) <48
ggen yob=year(birth_dt)
ggen male=sex==2
ggen age_pt_wi3_first_cat5= 5 if age_pt_wi3_first <.
rreplace age_pt_wi3_first_cat5= 4 if age_pt_wi3_first <96
rreplace age_pt_wi3_first_cat5= 3 if age_pt_wi3_first <72
rreplace age_pt_wi3_first_cat5= 2 if age_pt_wi3_first <48
rreplace age_pt_wi3_first_cat5= 1 if age_pt_wi3_first <24
ggen pt_hosp_wi_8h = (pt_start_age + 1) - age_pt_wi3_first <8
The old variable pt_hosp_wi_8 used for PAS mtg did not have 1 added to pt_start_age.
ggen gest_wks_recoded= gest_wks
rreplace gest_wks_recoded=41 if gest_wks >41