Nhis7 %>% group_by(sex) %>%
summarise(sd = sd(hourssleep, na.rm = T),
median = median(hourssleep, na.rm = T),
range = paste(min(hourssleep, na.rm = T), "-", max(hourssleep, na.rm = T)),
n = sum(!is.na(hourssleep)))
this worked for sd, mean, and range but I have no idea how to split up hours sleep by sex for skew, kurtosis , coefficient of variation, quintiles.
this is my first ever computer class!! thanks!!!
laura