solution to problem set3

solution to problem set3 - Eco 572: Research methods in...

Info iconThis preview shows pages 1–3. Sign up to view the full content.

View Full Document Right Arrow Icon
Eco 572: Research methods in Demography Solutions to Problem Set 3 [1] Nuptiality in the U.S. We start by reading the data from the website. . infile age n using /// > http://data.princeton.edu/eco572/datasets/sipp01w3741.dat, clear (31 observations read) (a) Since these are cohort data and we are only interested in the experience up to age 37, which is complete for women aged 37-41 at interview, we can compute d x directly, just dividing the frequencies by the total number of women. The other life table functions follow directly. The only time we need to make an assumption about the distribution of events in a year of age is in computing L x , and we assume a uniform distribution. . quietly summarize n . gen dx = n/r(sum) if age < 37 (6 missing values generated) . gen lx = 1 . replace lx = lx[_n-1] - dx[_n-1] if _n > 1 (30 real changes made, 5 to missing) . gen qx = dx/lx (6 missing values generated) . gen Lx = (lx + lx[_n+1])/2 (6 missing values generated) . format %8.6f dx qx lx Lx . list age dx qx lx Lx if age <= 37 +-------------------------------------------------+ | age dx qx lx Lx | |-------------------------------------------------| 1. | 12 0.000654 0.000654 1.000000 0.999673 | 2. | 13 0.000654 0.000655 0.999346 0.999018 | 3. | 14 0.002618 0.002621 0.998691 0.997382 | 4. | 15 0.008181 0.008213 0.996073 0.991983 | 5. | 16 0.025851 0.026168 0.987893 0.974967 | |-------------------------------------------------| 6. | 17 0.040903 0.042517 0.962042 0.941590 | 7. | 18 0.077552 0.084192 0.921139 0.882363 | 8. | 19 0.081152 0.096199 0.843586 0.803010 | 9. | 20 0.070353 0.092275 0.762435 0.727258 | (1 of 12) [2/11/2008 2:17:33 PM] http://data.princeton.edu/eco572/ps3sol.html
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Eco 572: Research methods in Demography 10. | 21 0.062500 0.090307 0.692081 0.660831 | |-------------------------------------------------| 11. | 22 0.068390 0.108628 0.629581 0.595386 | 12. | 23 0.064463 0.114869 0.561191 0.528959 | 13. | 24 0.050393 0.101449 0.496728 0.471531 | 14. | 25 0.051374 0.115103 0.446335 0.420648 | 15. | 26 0.040903 0.103563 0.394961 0.374509 | |-------------------------------------------------| 16. | 27 0.035013 0.098891 0.354058 0.336551 | 17. | 28 0.031414 0.098462 0.319045 0.303338 | 18. | 29 0.022906 0.079636 0.287631 0.276178 | 19. | 30 0.017016 0.064277 0.264725 0.256217 | 20. | 31 0.022579 0.091149 0.247709 0.236420 | |-------------------------------------------------| 21. | 32 0.018652 0.082849 0.225131 0.215805 | 22. | 33 0.013416 0.064976 0.206479 0.199771 | 23. | 34 0.013089 0.067797 0.193063 0.186518 | 24. | 35 0.012762 0.070909 0.179974 0.173593 | 25. | 36 0.010144 0.060665 0.167212 0.162140 | |-------------------------------------------------| 26. | 37 . . 0.157068 . | +-------------------------------------------------+ . quietly sum Lx . di 12 + r(sum) 25.715641 . drop if age > 37 (5 observations deleted) The average time lived in the single state by age 37.0 is 25.7. (b) To answer these questions we need l
Background image of page 2
Image of page 3
This is the end of the preview. Sign up to access the rest of the document.

This homework help was uploaded on 02/12/2008 for the course ECON 572 taught by Professor Rodriguez during the Spring '06 term at Princeton.

Page1 / 12

solution to problem set3 - Eco 572: Research methods in...

This preview shows document pages 1 - 3. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online