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).

data("housetasks.raw")

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.

Source

Derived from the housetasks data set in the factoextra package, with its "Wife" and "Husband" columns relabeled "Partner1" and "Partner2", expanded to one row per recorded case.

Examples

data(housetasks.raw)
table(housetasks.raw)
#>             status
#> tasks        Partner1 Alternating Parter2 Jointly
#>   Laundry         156          14       2       4
#>   Main_meal       124          20       5       4
#>   Dinner           77          11       7      13
#>   Breakfeast       82          36      15       7
#>   Tidying          53          11       1      57
#>   Dishes           32          24       4      53
#>   Shopping         33          23       9      55
#>   Official         12          46      23      15
#>   Driving          10          51      75       3
#>   Finances         13          13      21      66
#>   Insurance         8           1      53      77
#>   Repairs           0           3     160       2
#>   Holidays          0           1       6     153

# Chi-square test of association between task and who performs it
chisq.test(table(housetasks.raw$tasks, housetasks.raw$status))
#> 
#> 	Pearson's Chi-squared test
#> 
#> data:  table(housetasks.raw$tasks, housetasks.raw$status)
#> X-squared = 1944.5, df = 36, p-value < 2.2e-16
#>