Learn R Programming

BSDA (version 1.2.2)

Blackedu: Education level of blacks by gender

Description

Data for Exercise 8.55

Usage

Blackedu

Arguments

Format

A data frame/tibble with 3800 observations on two variables

gender

a factor with levels Female and Male

education

a factor with levels High school dropout, High school graudate, Some college, Bachelor's degree, and Graduate degree

References

Kitchens, L. J. (2003) Basic Statistics and Data Analysis. Pacific Grove, CA: Brooks/Cole, a division of Thomson Learning.

Examples

Run this code

T1 <- xtabs(~gender + education, data = Blackedu)
T1
chisq.test(T1)

Run the code above in your browser using DataLab