The DHS Program User Forum
Discussions regarding The DHS Program data and results
Today's Messages (on)  | Unanswered Messages (off)

Forum: Fertility
 Topic: Adolescent Fertility Rate( File)-Nigeria
Re: Adolescent Fertility Rate( File)-Nigeria [message #19771 is a reply to message #19766] Thu, 13 August 2020 12:12
Courtney-DHS is currently offline  Courtney-DHS
Messages: 5
Registered: June 2018
Location: Rockville, Maryland
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.

Current Time: Thu Aug 13 20:35:22 Eastern Daylight Time 2020