Learn R Programming

datarium (version 0.2.0)

housetasks.raw: Housetasks

Description

A data frame containing the frequency of execution of 13 house tasks in the couple.

It is the data set used in the Datanovia tutorial “Chi-Square Test of Independence in R: Are Two Variables Associated?” (https://www.datanovia.com/learn/biostatistics/categorical/chi-square-test-of-independence-in-r).

Usage

data("housetasks.raw")

Arguments

Format

A data frame with 1744 rows and 2 columns (stored as a tibble). Each row is one recorded performance of a household task, recovered from the original contingency table.

tasks

the household task, one of 13 categories: "Laundry", "Main_meal", "Dinner", "Breakfeast", "Tidying", "Dishes", "Shopping", "Official", "Driving", "Finances", "Insurance", "Repairs" and "Holidays". ("Breakfeast" is a misspelling of "Breakfast" carried over from the source data.)

status

who performs the task: "Partner1", "Alternating", "Parter2" or "Jointly". The two partner categories were relabeled from the source data's "Wife" and "Husband"; "Parter2" is a misspelling of "Partner2" retained as-is in the stored data.

See Also

Examples

Run this code
data(housetasks.raw)
table(housetasks.raw)

# Chi-square test of association between task and who performs it
chisq.test(table(housetasks.raw$tasks, housetasks.raw$status))

Run the code above in your browser using DataLab