Monday, April 24, 2006

Do Pregnant Women Quit Smoking ? Do women start quiting before they are pregnant ?

10 comments:

  1. drop _all
    set mem 100m

    use a_w8rel,clear
    keep if rel == 2
    sort country pid2
    save ja_w8rel,replace

    clear
    use a_w7rel,clear
    keep if rel == 2
    sort country pid2
    save ja_w7rel,replace


    merge country pid2 using ja_w8rel
    keep if _m==2
    drop _m
    /* these should be new kids */
    gen double pid = pid1
    sort country pid
    save newkids,replace


    clear
    use a_w8r
    sort country pid
    save,replace


    clear
    use a_w8p
    sort country pid
    save,replace

    clear
    use a_w7p
    rename pd004 sex
    keep if sex == 2 /* gender == female */
    sort country pid
    merge country pid using newkids
    keep if _m==3 /* mother with newly arrived kids */
    drop _m
    save newkids,replace

    replace pid = pid2
    sort country pid
    merge country pid using a_w8r
    keep if _m==3
    drop _m

    keep if rd001==.
    keep if pd003 < 41 /* keep mothers younger than 41 */

    keep if pg006 > 0
    keep if rd002 >0
    gen long diff = pg006 - rd002
    replace diff = diff-12 if diff >=0


    keep country pid1 pid2 hid pg006 pg007 rd002 wave pd003 diff sex
    gen double pid=pid1
    drop if pg006 <0
    gen pg006_old=pg006
    drop pg006
    sort country pid
    merge country pid using a_w8p

    keep if _m==3
    drop _m
    drop if pg006 <0
    gen diffint = pg006 - pg006_old
    replace pg006 = pg006_old
    drop pg006_old
    keep country pid pid1 pid2 hid pg006 pg007 rd002 wave pd003 diffint diff sex
    gen temp = diff + diffint
    keep if temp <=0
    drop temp
    drop if diff == -12 & diffint == 0

    gen ybirth = 2000 + ((pg006 - diff) > 12)
    replace pid = pid2
    recast double pid1 pid2 pid
    keep country hid pid1 pid2 ybirth sex

    sort country pid2
    save newmkids,replace

    ReplyDelete
  2. the program below called nnkidscheck7.do should do for the 7th wave what newnewkids does for the 8th (that is guess kids birth year). I don't have the data to check that the guessed year corresponds to the available rd001

    rop _all
    set mem 100m

    use a_w6rel,clear
    keep if rel == 2
    sort country pid2
    save ja_w6rel,replace

    clear
    use a_w7rel,clear
    keep if rel == 2
    sort country pid2
    save ja_w7rel,replace


    merge country pid2 using ja_w6rel
    keep if _m==2
    drop _m
    /* these should be new kids */
    gen double pid = pid1
    sort country pid
    save newkids,replace


    clear
    use a_w7r
    sort country pid
    save,replace


    clear
    use a_w7p
    sort country pid
    save,replace

    clear
    use a_w6p
    rename pd004 sex
    keep if sex == 2 /* gender == female */
    sort country pid
    merge country pid using newkids
    keep if _m==3 /* mother with newly arrived kids */
    drop _m
    save newkids,replace

    replace pid = pid2
    sort country pid
    merge country pid using a_w6r
    keep if _m==3
    drop _m

    /* to check we want to guess birth year even if we know it so this line commented out
    keep if rd001==. */

    keep if pd003 < 41 /* keep mothers younger than 41 */

    keep if pg006 > 0
    keep if rd002 >0
    gen long difg = pg006 - rd002
    replace difg = difg-12 if difg >=0

    drop pid
    gen double pid=pid2

    drop if pg006 <0
    gen pg006_old=pg006
    drop pg006
    sort country pid
    merge country pid using a_w8p

    keep if _m==3
    drop _m
    drop if pg006 <0
    gen diffint = pg006 - pg006_old
    replace pg006 = pg006_old
    drop pg006_old

    gen temp = difg + diffint
    keep if temp <=0
    drop temp
    drop if difg == -12 & diffint == 0

    gen rd001g = 1999 + ((pg006 - difg) > 12)
    recast double pid1 pid2 pid
    gen desc_id = pid2
    gen ybirth = 1999 + ((pg006 - diff) > 12)

    sort country hid pid
    save c:\programmi\stata9\preg\nnmkids7,replace

    drop _all

    use c:\programmi\stata9\preg\a_w7r

    sort country hid pid


    merge country hid pid using c:\programmi\stata9\preg\nnmkids7

    gen oops = rd001-rd001g
    sum oops
    sum oops if pid==desc_id

    ReplyDelete
  3. Bionatrol Pro Enhance Enhancement product alternative to prescription drugs. And, unlike many prescription drugs that treat Erectile Dysfunction, the herbal male enhancement products are natural, fast acting, long lasting (up to 72 hours), reportedly do not have the side effects, some can also be effective even when alcohol

    ReplyDelete
  4. Synergex 7 Many male enhancement pills include ingredients that are a carefully selected combination of the right amount of rare tropical herbs, usually 4-7 herbs, processed through a secret extraction process that produces the incredible results of these products with consistency, so you can always rely on that same amazing effect on your penis, time and time again! Male enhancement products will never leave you hanging, no pun intended!

    ReplyDelete
  5. Rapid Fast Keto Boost Now, maintaining a weight under this comfort zone requires constant work in the form of restricting calories and doing cardio. Getting fatter than this requires regular overeating, and if this continues for too long, the comfort zone creeps higher and higher.

    ReplyDelete
  6. Evianne Cream The harsh and artificial ingredients in beauty creams and face moisturizers are very dangerous and may lead to severe diseases like skin cancer etc. All these may look good and are very good to smell, but they gives adverse effects on your skin.

    ReplyDelete
  7. Ultimate Keto Boost Last, and potentially more profitable for the weight loss industry, are devices, supplements and other products intended to produce weight loss. These include diet pills, natural weight loss supplements containing acai, African mango and a range of other substances, plus belts and other devices. The basic principle behind some of these products has been shown to help with reduction when it's combined with other mainstream methods, but the majority of diet pills and other products don't do much to help. They can even be harmful to your health.

    ReplyDelete
  8. Fusion Rise Keto Compare this to a non-traditional keto snack such as an apple at a 100 calories, and which do you think is better for your weight loss plan? You could even add some peanut butter to the apple to help better balance it out and you would still be under 200 calories, way less than the calories in the keto snack.

    ReplyDelete
  9. Boost Xtra Many male enhancement pills include ingredients that are a carefully selected combination of the right amount of rare tropical herbs, usually 4-7 herbs, processed through a secret extraction process that produces the incredible results of these products with consistency, so you can always rely on that same amazing effect on your penis, time and time again! Male enhancement products will never leave you hanging, no pun intended!

    ReplyDelete
  10. Best Back Massager Other electric back massagers are handheld and look very much like a regular shower-head. A button is pressed and the tip either vibrates, rolls, beats, or kneads. Handheld electric back massagers are great for isolated aches and pains and are more flexible in treating muscle pains for it can be used to treat thighs and arms as well. Some handheld electric massagers come with infra-red devices that claim to sooth and rejuvenate tired muscles. These handheld massagers are great for massaging not only yourself, but your loved ones as well.

    ReplyDelete