Home » Topics » Fertility » Calculating Period Parity Progression Ratio
Re: Calculating Period Parity Progression Ratio [message #7080 is a reply to message #7079] |
Thu, 20 August 2015 11:48 |
Liz-DHS
Messages: 1516 Registered: February 2013
|
Senior Member |
|
|
Here is Dr. Pullum's response:
Quote:To get that specific table in Stata, you could use the following lines. Note that in that survey, year of birth is coded with only two digits. For example, "1995" is coded "95". More recent surveys generally use four digits for the year.
The main complication is that the births in the birth histories are sequenced in reverse temporal order. That is, birth 1 is the most recent birth. You need to work from bord, with gives the birth order of each birth. One way to do that, with local notation, is shown here. There are other ways.
Another complication is that the indexes for the births in the birth history are 01, 02,....09, 10, 11, etc. I recommend that the leading 0 for 01 through 09 be removed with a rename command, as shown.
Let me know if you have other questions.
* Construction of table 16.29 in Chapter 16 of Methods and Materials of Demography
* open PHIR3BFL.dta
set more off
* get the names of the b variables
describe b*01
describe bord*
* there are up to 20 births in the birth histories
* remove the unnecessary 0's in the index for the b variables
rename b*_0* b*_*
* The births in the birth history are numbered in reverse order;
* it will be convenient to resequence them by birth order
* This approach can be used for other years and parities
gen year_1=.
gen year_2=.
local li=1
while `li'<=20 {
replace year_1=b2_`li' if bord_`li'==1
replace year_2=b2_`li' if bord_`li'==2
local li=`li'+1
}
tab year_1 year_2 if year_1>=90 & year_2>=90
|
|
|
|
|
Calculating Period Parity Progression Ratio
By: gbemtrol on Wed, 19 August 2015 06:17
|
|
|
Re: Calculating Period Parity Progression Ratio
By: Liz-DHS on Wed, 19 August 2015 15:09
|
|
|
Re: Calculating Period Parity Progression Ratio
By: gbemtrol on Wed, 19 August 2015 16:02
|
|
|
Re: Calculating Period Parity Progression Ratio
By: gbemtrol on Thu, 20 August 2015 04:46
|
|
|
Re: Calculating Period Parity Progression Ratio
By: Liz-DHS on Thu, 20 August 2015 11:48
|
|
|
Re: Calculating Period Parity Progression Ratio
By: gbemtrol on Fri, 21 August 2015 23:39
|
|
|
Re: Calculating Period Parity Progression Ratio
By: devraj on Mon, 30 November 2015 01:35
|
|
|
Re: Calculating Period Parity Progression Ratio
By: Liz-DHS on Wed, 02 December 2015 13:23
|
|
|
Re: Calculating Period Parity Progression Ratio
By: devraj on Sun, 14 May 2017 06:37
|
|
|
Re: Calculating Period Parity Progression Ratio
By: rajaram on Sun, 28 January 2018 04:56
|
|
|
Re: Calculating Period Parity Progression Ratio
By: Liz-DHS on Wed, 04 April 2018 16:10
|
Goto Forum:
Current Time: Fri Nov 22 19:34:29 Coordinated Universal Time 2024
|