My data frame is something like this. dat1 <- data.frame(age = c(21, 20, 17,20, 12, 13, 15,16), Gender = factor(c(2, 2, 1, 2, 1, 2, 1, 1), labels = c("Female&
dat1 <- data.frame(age = c(21, 20, 17,20, 12, 13, 15,16), Gender = factor(c(2, 2, 1, 2, 1, 2, 1, 1), labels = c("Female&