The DHS Program User Forum
Discussions regarding The DHS Program data and results
Home » Topics » Fertility » General fertility rate on STATA
General fertility rate on STATA [message #12390] Mon, 08 May 2017 21:03 Go to next message
catherino222 is currently offline  catherino222
Messages: 4
Registered: February 2017
Location: London ON

I am using Cameroon DHS 2011 and would like help on how to compute the general fertility rate on STATA. I used the tfr2 command which gave me the TFR but I am not sure how to proceed to get the GFR. I would also, like to know how to change the default 3 year period that precedes the survey to a longer period of 5years or 7 years and derive GFR for different regions within the country.

Thank you very much
Re: General fertility rate on STATA [message #12396 is a reply to message #12390] Tue, 09 May 2017 09:17 Go to previous messageGo to next message
Messages: 1516
Registered: February 2013
Senior Member
Dear User, You may find a post by one of our users useful http:// 4436&#msg_4436
You can search the forum for keywords to find other posts with similar content.
We also have other resources to assist you. Please refer to The Guide to DHS Statistics http:// onnaires-and-manuals.cfm, The Standard Recode Manual http:// onnaires-and-manuals.cfm and a set of YouTube videos.
The video series covers making sure you have the correct....
Video 1: Data File and Denominator
Video 2: Variables
Video 3: Recoding and Weights
Video 4: Software Specific Codes and Tabulation Commands
https:// y4CT
For Stata tutorials, please visit:
Re: General fertility rate on STATA [message #12399 is a reply to message #12390] Tue, 09 May 2017 11:50 Go to previous message
schoumaker is currently offline  schoumaker
Messages: 58
Registered: May 2013
Location: Belgium
Senior Member

tfr2 does not compute the GFR. But when you run tfr2, you will get the total number of events and exposure (weighted), from which you can compute the GFR. To change the length of the period, just specify it in the len(length) option.

For instance, typing

tfr, len(7) maxage(44)

will compute fertility rates for the seven years preceding the survey up to completed age 44 (the GFR in DHS is for 15-44). The output is copied below for Cameroon 2011.

You can get the GFR from the following information:

Number of person-years (weighted): 87397.727
Number of events (weighted): 15872.734

-> GFR=15872.734/87397.727

to have it for different regions, you can use by:

by v024, sort: tfr2, len(7)

Best wishes,


**** Output ****
. tfr2, maxa(44) len(7)
weight variable is v005
Preparing table of events and exposure for 7 year(s) preceding the survey
Period covered: 4/2004 to 3/2011
Central date is 2007.7796
Number of cases (women): 15374
Number of person-years (weighted): 87397.727
Number of events (weighted): 15872.734


------------------------------------------------------------ ------------------
events | Coef. Std. Err. z P>|z| [95% Conf. Interval]
-------------+---------------------------------------------- ------------------
Rate_1519 | .1317664 .0023793 55.38 0.000 .1271031 .1364297
Rate_2024 | .2397899 .0034917 68.67 0.000 .2329462 .2466335
Rate_2529 | .251612 .0040571 62.02 0.000 .2436603 .2595637
Rate_3034 | .2029518 .0041 49.50 0.000 .1949159 .2109878
Rate_3539 | .1397143 .0038127 36.64 0.000 .1322415 .1471871
Rate_4044 | .0601799 .0028358 21.22 0.000 .0546219 .0657379
TFR | 5.130072 .0429249 119.51 0.000 5.045941 5.214203
------------------------------------------------------------ ------------------

Bruno Schoumaker
Centre for Demographic Research
Université catholique de Louvain
Previous Topic: Cumulative fertility
Next Topic: Fertility preference v629
Goto Forum:

Current Time: Fri Aug 19 21:46:18 Coordinated Universal Time 2022