eohi/.history/eohi1/datap 15 - education recoded 3 ordinal levels_20251027113517.r
2025-12-23 15:47:09 -05:00

12 lines
334 B
R

options(scipen = 999)
setwd("C:/Users/irina/Documents/DND/EOHI/eohi1")
data <- read.csv("ehi1.csv")
# Check the levels of the demo_edu variable
print(levels(factor(data$demo_edu)))
# Also show the unique values and their frequencies
print("\nUnique values and frequencies:")
print(table(data$demo_edu, useNA = "ifany"))