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 message Go to previous message](/theme/default/images/up.png) ![Go to next message Go to previous message](/theme/default/images/down.png) |
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")
|
|
|
Goto Forum:
Current Time: Thu Sep 5 08:31:45 Coordinated Universal Time 2024
|