DHSRates R Standard Errors [message #28407] |
Fri, 29 December 2023 14:09 |
Anne Huercanos
Messages: 4 Registered: November 2023
|
Member |
|
|
Hello,
I am working with the R package DHS rates to produce subnational TFR estimates for several countries. The program seems to work for some countries, but not for others. For all regions in all countries, it produces TFR estimates, but it only produces SEs for some regions.
For example, using Benin 2017-18:
library(DHS.rates)
df <- read.dta("BJIR71FL.dta", convert.factors = FALSE)
df.subnat <- fert(df,Indicator="tfr", JK="Yes", Period= 36, Class="v024")
produces TFR estimates for all 12 regions, yet it only produces a SE for the first region. For all other regions, it produces a SE of 0. The same is true for a number of countries.
By contrast, it produces TFR estimates and SEs for all regions for the Rwanda 2019-20 data (and for some other countries). There seems to be no obvious reason or pattern between the countries for which it works and the countries for which it doesn't.
Please help,
Anne
|
|
|