The DHS Program User Forum
Discussions regarding The DHS Program data and results
Home » Topics » Fertility » R Code for Calculation of Total Wanted Fertility Rate (flagging on the basis of wantedness of the child in R)
R Code for Calculation of Total Wanted Fertility Rate [message #29970] Sun, 01 September 2024 18:29 Go to previous message
nima is currently offline  nima
Messages: 1
Registered: September 2024
Member
Hello, hope you're having a good day.
I have been having a hard time filtering out children in BR file on the basis of wantedness described in DHS Statistics Guide book. The book says a preceding child is considered living at the time of conception if it was born before the date of conception and a) is living at the time of the survey or b) died at or before the date of conception (calculations based on century month codes). If the resulting number is less than the ideal number of children, the birth after it is considered wanted. I have written too many codes but I have not managed to flag the children on the basis of the wantedness criterion provided by the book. It'd be really helpful if you coud provide me with an R code to calculate total wanted fertility rate.

[Updated on: Mon, 02 September 2024 16:47]

Report message to a moderator

 
Read Message
Read Message
Previous Topic: Desired Fertility For Men
Next Topic: Wanted Fertility Rate
Goto Forum:
  


Current Time: Thu Nov 28 09:14:26 Coordinated Universal Time 2024