23
CMGPD-LN Methodological Lecture Day 7 Health and Mortality

CMGPD-LN Methodological Lecture

  • Upload
    rianne

  • View
    28

  • Download
    0

Embed Size (px)

DESCRIPTION

CMGPD-LN Methodological Lecture. Day 7 Health and Mortality. Mortality outcomes. Until age 75, recording of mortality appears plausible Age patterns resemble other historical populations, model life tables After age 75, mortality record is problematic - PowerPoint PPT Presentation

Citation preview

Page 1: CMGPD-LN Methodological Lecture

CMGPD-LNMethodological Lecture

Day 7Health and Mortality

Page 2: CMGPD-LN Methodological Lecture

Mortality outcomes

• Until age 75, recording of mortality appears plausible– Age patterns resemble other historical populations, model

life tables• After age 75, mortality record is problematic

– Many immortals were taoding at some point, so for mortality analysis perhaps safest to throw out all records of anyone who was taoding

• Rates below age 5 appear normal, but representativeness of registered children is unclear

• Large numbers of deaths allow for fine-grained analysis of mortality determinants

Page 3: CMGPD-LN Methodological Lecture

0.0

5.1

.15

.2.2

5P

roba

bilit

y of

dyi

ng in

nex

t 3 y

ears

0 20 40 60 80 100AGE

Males Females

Page 4: CMGPD-LN Methodological Lecture

. use "C:\Users\Cameron Campbe\Documents\Baqi\CMGPD-LN from > ICPSR\ICPSR_27063\DS0001\27063-0001-Data.dta", clear(China Multi-Generational Panel Dataset, Liaoning (CMGPD-LN)> , 1749-1909, Liaoning)

. recode AGE_IN_SUI min/0=. 1/15=1 16/55=16 56/max=56(AGE_IN_SUI: 1478270 changes made)

. keep if NEXT_DIE >= 0 & NEXT_3 & PRESENT(653682 observations deleted)

. keep if SEX >= 1(1 observation deleted)

. tab AGE_IN_SUI SEX if NEXT_DIE

| SexAge in Sui | Female Male | Total-----------+----------------------+---------- 1 | 1,189 5,132 | 6,321 16 | 11,160 10,721 | 21,881 56 | 11,342 11,923 | 23,265 -----------+----------------------+---------- Total | 23,691 27,776 | 51,467

Page 5: CMGPD-LN Methodological Lecture

Analyzing mortality

• Life tables– Remember, ages are in sui– Probability of death in next three years (3qx)– Need to be converted to mx to put into a life table

– One crude conversion: mx = -ln(1- 3qx)/3– More sophisticated conversions are appropriate at early

ages when rates are changing fast• Discrete-time event-history analysis

– Logistic regression– Complementary log-log regression

Page 6: CMGPD-LN Methodological Lecture

Life tablesA crude approach

keep if AGE_IN_SUI > 0 & AGE_IN_SUI <= 75 & NEXT_3 & PRESENT & SEX > 0

* Divide into five year age groupsreplace AGE_IN_SUI =

5*int((AGE_IN_SUI-1)/5)+1tab AGE_IN_SUI SEXcollapse NEXT_DIE, by(AGE_IN_SUI SEX)sort SEX AGE_IN_SUI

Page 7: CMGPD-LN Methodological Lecture

. tab AGE_IN_SUI SEX

| SexAge in Sui | Female Male | Total-----------+----------------------+---------- 1 | 5,026 37,223 | 42,249 6 | 7,881 53,337 | 61,218 11 | 8,334 51,932 | 60,266 16 | 20,835 47,582 | 68,417 21 | 35,747 46,067 | 81,814 26 | 37,344 44,648 | 81,992 31 | 34,870 40,533 | 75,403 36 | 32,342 37,912 | 70,254 41 | 30,347 35,131 | 65,478 46 | 27,330 30,170 | 57,500 51 | 24,282 26,714 | 50,996 56 | 20,898 22,568 | 43,466 61 | 16,949 17,566 | 34,515 66 | 13,143 12,664 | 25,807 71 | 9,014 8,072 | 17,086 -----------+----------------------+---------- Total | 324,342 512,119 | 836,461

Page 8: CMGPD-LN Methodological Lecture

Example of a crude life table

SEXAGE_IN_SUI NEXT_DIE mx 5px lx

Female 1 0.110824 0.039153 0.822204 1 4.555511 50.20073Female 6 0.047963 0.016384 0.921346 0.822204 3.949347 45.64522Female 11 0.030478 0.010317 0.949722 0.757535 3.692455 41.69588Female 16 0.036621 0.012436 0.939713 0.719447 3.488803 38.00342Female 21 0.038381 0.013046 0.936854 0.676074 3.273641 34.51462Female 26 0.040006 0.01361 0.934216 0.633382 3.062746 31.24098Female 31 0.042988 0.014647 0.929385 0.591716 2.854119 28.17823Female 36 0.04774 0.016306 0.921707 0.549932 2.642018 25.32411Female 41 0.049033 0.016759 0.919622 0.506876 2.432524 22.68209Female 46 0.05236 0.017927 0.914265 0.466134 2.230759 20.24957Female 51 0.064616 0.022266 0.894644 0.42617 2.018601 18.01881Female 56 0.087951 0.030687 0.857756 0.38127 1.770768 16.00021Female 61 0.120243 0.042703 0.807739 0.327037 1.477993 14.22944Female 66 0.177129 0.064985 0.722581 0.26416 1.137594 12.75145Female 71 0.227646 0.086104 0.650171 0.190877 11.61386 11.61386

Page 9: CMGPD-LN Methodological Lecture

Example of a crude life table

SEX AGE_IN_SUI NEXT_DIE mx 5px lx eMale 1 0.075437 0.026145 0.87746 1 4.69365 56.08813Male 6 0.025836 0.008725 0.957312 0.87746 4.293658 51.39448Male 11 0.018216 0.006128 0.969825 0.840003 4.136648 47.10082Male 16 0.018684 0.006287 0.969055 0.814656 4.010255 42.96417Male 21 0.020036 0.006746 0.96683 0.789446 3.881767 38.95392Male 26 0.021479 0.007238 0.964458 0.763261 3.748484 35.07215Male 31 0.02662 0.008994 0.956028 0.736133 3.599742 31.32367Male 36 0.03458 0.011731 0.943033 0.703764 3.41859 27.72392Male 41 0.045686 0.015588 0.925022 0.663673 3.193961 24.30533Male 46 0.060921 0.020952 0.90054 0.613912 2.91691 21.11137Male 51 0.079247 0.027521 0.871442 0.552852 2.586578 18.19446Male 56 0.10896 0.038455 0.825079 0.481779 2.198212 15.60788Male 61 0.140271 0.050379 0.777325 0.397506 1.766243 13.40967Male 66 0.200569 0.074618 0.688603 0.308991 1.304409 11.64343Male 71 0.251858 0.096721 0.616557 0.212772 10.33902 10.33902

Page 10: CMGPD-LN Methodological Lecture

Event-history analysis

keep if AGE_IN_SUI > 0 & AGE_IN_SUI <= 75 & NEXT_3 & PRESENT & SEX > 0

replace AGE_IN_SUI = 5*int((AGE_IN_SUI-1)/5)+1

xi:logit NEXT_DIE i.AGE_IN_SUI i.SEX i.REGION

Page 11: CMGPD-LN Methodological Lecture

------------------------------------------------------------------------------ NEXT_DIE | Coef. Std. Err. z P>|z| [95% Conf. Interval]-------------+----------------------------------------------------------------_IAGE_IN_~_6 | -1.077269 .0301595 -35.72 0.000 -1.136381 -1.018158_IAGE_IN_~11 | -1.453427 .0342583 -42.43 0.000 -1.520572 -1.386282_IAGE_IN_~16 | -1.275694 .0307841 -41.44 0.000 -1.33603 -1.215358_IAGE_IN_~21 | -1.134171 .0279815 -40.53 0.000 -1.189014 -1.079328_IAGE_IN_~26 | -1.068992 .0274992 -38.87 0.000 -1.122889 -1.015094_IAGE_IN_~31 | -.9322853 .0271684 -34.32 0.000 -.9855344 -.8790363_IAGE_IN_~36 | -.7535797 .0264842 -28.45 0.000 -.8054878 -.7016715_IAGE_IN_~41 | -.5966655 .0259978 -22.95 0.000 -.6476202 -.5457108_IAGE_IN_~46 | -.4034962 .0257241 -15.69 0.000 -.4539145 -.353078_IAGE_IN_~51 | -.1480721 .0250983 -5.90 0.000 -.1972639 -.0988803_IAGE_IN_~56 | .194831 .0244138 7.98 0.000 .1469809 .2426811_IAGE_IN_~61 | .5058013 .024371 20.75 0.000 .4580351 .5535676_IAGE_IN_~66 | .9441143 .024353 38.77 0.000 .8963834 .9918453_IAGE_IN_~71 | 1.246485 .0257523 48.40 0.000 1.196011 1.296958 _ISEX_2 | -.107873 .0102132 -10.56 0.000 -.1278905 -.0878555 _IREGION_2 | .0075932 .0117758 0.64 0.519 -.015487 .0306734 _IREGION_3 | -.1400285 .0138099 -10.14 0.000 -.1670953 -.1129616 _IREGION_4 | -.2427861 .017067 -14.23 0.000 -.2762367 -.2093354 _cons | -2.300452 .0209234 -109.95 0.000 -2.341461 -2.259443------------------------------------------------------------------------------

Page 12: CMGPD-LN Methodological Lecture

Accounting for age and sex• We generally analyze childhood, working ages, and old age

separately– Since relevant variables vary, as do their effects

• We often, but not always, analyze males and females separately– Because effects of key variables may vary by sex

• Categorical variable for age group– See previous example

• Polynomialgenerate age2 = age^2generate age3 = age^3logit NEXT_DIE age age2 age3

• Hybrid– Include age group categories and linear term for age– To capture variation in risks within age groups

Page 13: CMGPD-LN Methodological Lecture

Other notes on mortality analysis

• Since many of the ‘immortals’ were tao at some point in their life, maybe worthwhile to throw out observations of anyone who was ever tao, even if they aren’t tao right now.

• Regional differences in mortality rates suggest inclusion of REGION as a basic control variable.

Page 14: CMGPD-LN Methodological Lecture

Using the disability variables

• Basic contents• Time trends• Age patterns• Working with the original disabilities

– And positions…

Page 15: CMGPD-LN Methodological Lecture
Page 16: CMGPD-LN Methodological Lecture
Page 17: CMGPD-LN Methodological Lecture
Page 18: CMGPD-LN Methodological Lecture
Page 19: CMGPD-LN Methodological Lecture

Working with the original disabilities

use "C:\Users\Cameron Campbe\Documents\Baqi\CMGPD-LN from ICPSR\ICPSR_27063\DS0001\27063-0001-Data.dta", clear

merge 1:1 RECORD_NUMBER using "C:\Users\Cameron Campbe\Documents\Baqi\CMGPD-LN from ICPSR\ICPSR_27063\DS0003\27063-0003-Data.dta"

merge m:1 DATASET DISABILITY_CODE using "C:\Users\Cameron Campbe\Documents\Baqi\extracts\CMGPD-LN Disability for SJTU class",keep(match master)

tab CONDITION_PINYIN, sortrun "C:\Users\Cameron Campbe\Documents\Dropbox\Lee-Campbell group

(Dropbox shares)\SJTU Dongbei Zhongxin\SJTU Summer Class\strip_disability.do“

tab new_CONDITION_PINYIN, sortgenerate byte lao_zheng = index(new_CONDITION_PINYIN,"lao zheng") > 0tab lao_zheng

Page 20: CMGPD-LN Methodological Lecture

.do file to clean up

generate new_CONDITION_PINYIN = CONDITION_PINYIN

local for_removal "1 2 3 4 5 6 7 8 9"foreach x of local for_removal {

replace new_CONDITION_PINYIN = subinstr(new_CONDITION_PINYIN,"`x'","",.)

}

Page 21: CMGPD-LN Methodological Lecture

. tab CONDITION_PINYIN, sort

Disease | Freq. Percent Cum.--------------------------------------+----------------------------------- chen2 tao2 | 1,238 10.93 10.93 lao2 zheng4 | 741 6.54 17.48 chen2 lao2 zheng4 | 574 5.07 22.55 yan3 xia1 | 462 4.08 26.62 chen2 xia1 | 388 3.43 30.05 chen2 tao2 you3 an4 | 300 2.65 32.70 can2 ji2 | 297 2.62 35.32 tu3 xie3 | 267 2.36 37.68 xia1 zi5 | 259 2.29 39.97 tui3 que2 | 234 2.07 42.03 tui3 tong4 | 190 1.68 43.71 chen2 tui3 que2 | 178 1.57 45.28 tui3 huai4 | 167 1.47 46.76 er3 long2 | 166 1.47 48.23 lao2 bing4 tu3 xie3 | 159 1.40 49.63 yan3 ji2 | 154 1.36 50.99 yao1 huai4 | 148 1.31 52.30 lou4 chuang1 | 121 1.07 53.36 lao3 tui4 | 108 0.95 54.32 chen2 tu3 xie3 | 107 0.94 55.26 xia1 yan3 yan3 ji2 | 107 0.94 56.21 yang2 gao1 feng1 | 107 0.94 57.15

Page 22: CMGPD-LN Methodological Lecture

. tab new_CONDITION_PINYIN, sort

new_CONDITION_PINYIN | Freq. Percent Cum.--------------------------------------+----------------------------------- chen tao | 1,238 10.93 10.93 lao zheng | 741 6.54 17.48 chen lao zheng | 574 5.07 22.55 yan xia | 462 4.08 26.62 chen xia | 388 3.43 30.05 can ji | 307 2.71 32.76 chen tao you an | 300 2.65 35.41 tu xie | 272 2.40 37.81 xia zi | 260 2.30 40.11 tui que | 234 2.07 42.18 tui tong | 190 1.68 43.85 chen tui que | 178 1.57 45.43 tui huai | 167 1.47 46.90 er long | 166 1.47 48.37 lao bing tu xie | 159 1.40 49.77 yan ji | 154 1.36 51.13 yao huai | 148 1.31 52.44 lou chuang | 121 1.07 53.51 ge bo huai | 113 1.00 54.50 lao tui | 108 0.95 55.46

Page 23: CMGPD-LN Methodological Lecture

. generate byte lao_zheng = index(new_CONDITION_PINYIN,"lao zheng") > 0

. tab lao_zheng

lao_zheng | Freq. Percent Cum.------------+----------------------------------- 0 | 1,511,910 99.90 99.90 1 | 1,447 0.10 100.00------------+----------------------------------- Total | 1,513,357 100.00