Learn R Programming

BSDA (version 1.2.1)

Hodgkin: Results of treatments for Hodgkin's disease

Description

Data for Exercise 2.77

Usage

Hodgkin

Arguments

Format

A data frame/tibble with 538 observations on two variables

type

a factor with levels LD, LP, MC, and NS

response

a factor with levels Positive, Partial, and None

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(~type + response, data = Hodgkin)
T1
barplot(t(T1), legend = TRUE, beside = TRUE)

if (FALSE) {
library(ggplot2)
ggplot2::ggplot(data = Hodgkin, aes(x = type, fill = response)) + 
           geom_bar(position = "dodge") + 
           theme_bw()
}

Run the code above in your browser using DataLab