The DHS Program User Forum
Discussions regarding The DHS Program data and results
Home » Countries » India » Educational Attainment in Years (Is it formal years?)
Re: Educational Attainment in Years [message #28987 is a reply to message #28985] Mon, 08 April 2024 14:07 Go to previous messageGo to previous message
krittika03 is currently offline  krittika03
Messages: 7
Registered: March 2024
Member
that makes sense! so just so I have understood properly, the 1 year is 1 year of formal education say grade 1? Sorry, I really need to make sure I got it right because my first model just uses educational attainment as the predictor variable. So in R, I have used:

DHSWomen_25Above$WOMEDU <- as.factor(case_when(
DHSWomen_25Above$WOMEDU == 0 ~ "No Education",
DHSWomen_25Above$WOMEDU %in% 1:5 ~ "Primary Education",
DHSWomen_25Above$WOMEDU %in% 6:8 ~ "Upper Primary/Middle School",
DHSWomen_25Above$WOMEDU %in% 9:10 ~ "Secondary School",
DHSWomen_25Above$WOMEDU %in% 11:12 ~ "Higher Secondary",
DHSWomen_25Above$WOMEDU %in% 13:15 ~ "Undergraduate Degree",
DHSWomen_25Above$WOMEDU %in% 16:18 ~ "Postgraduate",
DHSWomen_25Above$WOMEDU %in% 19:20 ~ "Advanced Studies", # For doctoral or specialized studies beyond postgrad
TRUE ~ "Other" # Handles any unexpected values
))

DHSWomen_25Above$WOMEDU <- factor(DHSWomen_25Above$WOMEDU, levels=c("No Education", "Primary Education", "Upper Primary/Middle School", "Secondary School", "Higher Secondary", "Undergraduate Degree", "Postgraduate", "Advanced Studies"))
DHSWomen_25Above$WOMEDU <- relevel(DHSWomen_25Above$WOMEDU, ref = "High School")
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Order of birth of the living children in NFHS-5
Next Topic: Mobile Phone Ownership in DHS7 (IND 2019-21)
Goto Forum:
  


Current Time: Sat Nov 23 14:07:03 Coordinated Universal Time 2024