I am trying to compare means of categorical data, that is education (integer) grouped by sex (Male and Female). So I have used the following code to view their means:
gss %>%
group_by(sex) %>%
summarise(xbar = mean(educ))
This code provides a table:
Sex xbar
Male NA
Female NA
I dont get why this is the case since my education (educ) vector has numerical values and NA (very few).