The DHS Program User Forum
Discussions regarding The DHS Program data and results
Home » Topics » Fertility » Adolescent Fertility Rate(FE_FERT.do File)-Nigeria (Chapter 5.1 Code(Fertility))
Re: Adolescent Fertility Rate(FE_FERT.do File)-Nigeria [message #19771 is a reply to message #19766] Thu, 13 August 2020 12:12 Go to previous messageGo to previous message
Courtney-DHS is currently offline  Courtney-DHS
Messages: 6
Registered: June 2018
Location: Rockville, Maryland
Member
Hello Placid,

I'm wondering if the error prompt is due to the version of Stata. However this code should work for most recent versions of Stata.
The estimate that you are trying to calculate for fe_ceb_comp is the mean shown in the results you attached (=6.315).

I would suggest turning the result into a 'normal' matrix first, for example:

mat mat1 = e(b)
gen fe_ceb_comp= mat1[1,1]


Let us know what version of Stata you have and if this works for you.
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: I need Stata codes to compute parameters (Cm, Cc, Ci and Ca) of the Bongaarts' model using DHS data.
Next Topic: Table on Fertility Planning Status from NFHS-4 data
Goto Forum:
  


Current Time: Tue Jul 16 02:41:42 Coordinated Universal Time 2024