The DHS Program User Forum
Discussions regarding The DHS Program data and results
Home » Topics » Fertility » TFR and ASFR at state level using TFR2 in STATA
TFR and ASFR at state level using TFR2 in STATA [message #8906] Tue, 12 January 2016 13:50 Go to next message
Adil is currently offline  Adil
Messages: 3
Registered: January 2016
Location: Italy
Member
I want to find regional level TFR and ASFR for Pakistan DHS data in STATA. If some one could help me to know the command in tfr2 please (urgent please)
Regards
Adil
Re: TFR and ASFR at state level using TFR2 in STATA [message #8908 is a reply to message #8906] Tue, 12 January 2016 20:43 Go to previous messageGo to next message
Reduced-For(u)m
Messages: 292
Registered: March 2013
Senior Member

I believe that if you want to use TFR2 to calculate fertility rates at the regional level, you could just open your dataset, keep the observations from one region, run TFR2, get the results, and then repeat for other regions. I do not believe (at least since I last checked) that TFR has a specific command to use sub-samples, but you don't really need it - just keep the observations from one region, run and repeat for the other regions.

You should definitely check the sample sizes for each region though, because these estimates are likely to be fairly noisy (and check the DHS report for the Pakistan dataset you are using to make sure that it was designed to be representative at the regional level).
Re: TFR and ASFR at state level using TFR2 in STATA [message #8915 is a reply to message #8908] Wed, 13 January 2016 12:05 Go to previous messageGo to next message
Adil is currently offline  Adil
Messages: 3
Registered: January 2016
Location: Italy
Member
Many Thanks.
Re: TFR and ASFR at state level using TFR2 in STATA [message #9337 is a reply to message #8915] Tue, 15 March 2016 07:53 Go to previous messageGo to next message
owraza is currently offline  owraza
Messages: 37
Registered: December 2013
Location: Nebraska, US
Member
In doing sub-group analysis, you need to take care of 'all women factor'. The method described above is completely valid as far as you manage to use correct variable for all women factor in that split file.

Other way of doing sub-group analysis, as described by author of tfr2, is to use following code line:

use "C:\Users\PKIR61FL.DTA", clear
by v024, sort: tfr2 [pweight=v005], len(3) ageg(5) bvar(b3_*) dates(v008) wbirth(v011) awf( awfactr )

Regards
Re: TFR and ASFR at state level using TFR2 in STATA [message #27349 is a reply to message #9337] Mon, 24 July 2023 09:50 Go to previous messageGo to next message
sarthak is currently offline  sarthak
Messages: 2
Registered: November 2022
Member
If I want to calculate TFRs by district for the Indian DHS, how do I save the results in a separate file or a new variable in the same file? There are over 600 districts and it will be very difficult to save each file manually. TIA.
Re: TFR and ASFR at state level using TFR2 in STATA [message #27915 is a reply to message #27349] Sat, 21 October 2023 12:38 Go to previous message
Shankup is currently offline  Shankup
Messages: 1
Registered: October 2023
Member
I want to know the same.
Previous Topic: Questions about calculating general fertility - Nigeria 2018 DHS
Next Topic: Appropriate 'weight'
Goto Forum:
  


Current Time: Fri Nov 22 18:33:56 Coordinated Universal Time 2024