Learn R Programming

BSDA (version 1.01)

Spouse: Convictions in spouse murder cases by gender

Description

Data for Exercise 8.33

Usage

Spouse

Arguments

Format

A data frame with 4 observations on the following 3 variables.

result

a factor with levels acquitted convicted not prosecuted pleaded guilty

husband

a numeric vector

wife

a numeric vector

Examples

Run this code
# NOT RUN {
str(Spouse)
attach(Spouse)
Spouse
chisq.test(Spouse[,2:3])
detach(Spouse)
# }

Run the code above in your browser using DataLab