Hi,
This is my dataframe:
chisq_matrix <- as.table(rbind(c(18, 36, 21, 9, 6),
c(12, 36, 45, 36, 21),
c(6, 9, 9, 3, 3),
c(3, 9, 9, 6, 3)))
dimnames(chisq_matrix) <- list(Marital_status = c("Never_married", "Married", "Divorced", "Widowed"),
Education_level = c("Middleschoolorlower", "Highschool", "Bachelors", "Masters", "PhDorhigher"))
which gives me this:
I would like to get this:
and so on to fill up all dataframe. How do I do it, please.