The DHS Program User Forum
Discussions regarding The DHS Program data and results
Home » Topics » Mortality » Total Number of Live Births By Year
Total Number of Live Births By Year [message #21683] Tue, 08 December 2020 02:56 Go to next message
shujaat.smc@gmail.com is currently offline  shujaat.smc@gmail.com
Messages: 75
Registered: July 2020
Senior Member
Dear DHS Representative,

I am working on determinants of neonatal mortality using BR file 2017-18 Pakistan DHS. Using STATA 13.1

I have made the descriptive tables (Two-way table using the determinants on row-wise and outcome variable; neonatal death in the column) in this way I got the weighted counts and proportions of those who died & those neonates who survived.

For reporting the total number of live births I have manually calculated from the table output.

I tried using the following stata commands for just getting the total number of live births by region and other determinants. However, stata showing me an error


svy linearized : total neonataldeaths==0, subpop (if bidx==1 & b0==0 & v210!=1)
svy linearized : total if neonataldeaths==0, subpop (if bidx==1 & b0==0 & v210!=1)
svy linearized : total (if neonataldeaths==0), subpop (if bidx==1 & b0==0 & v210!=1)
svy linearized : total (if neonataldeaths==0)
svy linearized : total if neonataldeaths==0

All these commands output by stata; "Invalid syntax".

Quest1: Is there a way to make a separate variable for the total number of live births and then tabulate it with different variables and subpopulation command of stata?

Q2: I also want to report the total number of live births in each, preceding five years (2013, 14 15, 16, 17 separately), How I can do that?


Best Regards

Dr. Hussain



Re: Total Number of Live Births By Year [message #21685 is a reply to message #21683] Tue, 08 December 2020 09:11 Go to previous messageGo to next message
Bridgette-DHS is currently offline  Bridgette-DHS
Messages: 2379
Registered: February 2013
Senior Member

Following is a response from DHS Research & Data Analysis Director, Tom Pullum:

If you want to switch to an aggregate-level analysis, for example with regions as units, it is easiest to use the "collapse" command. This will construct totals or means within subgroups. You can also use "egen total" to get totals in subgroups.
Re: Total Number of Live Births By Year [message #21690 is a reply to message #21685] Tue, 08 December 2020 23:06 Go to previous message
shujaat.smc@gmail.com is currently offline  shujaat.smc@gmail.com
Messages: 75
Registered: July 2020
Senior Member
Dear Tom Pullum;

Thanks a lot for this suggestion.

Best Regards

Dr. Hussain
Previous Topic: Days of Neonatal Death Not Matching to DHS Further Analysis Report
Next Topic: Child Health
Goto Forum:
  


Current Time: Mon Sep 27 04:09:14 Coordinated Universal Time 2021