Learn R Programming

BSDA (version 1.2.2)

Drug: Number of trials to master a task for a group of 28 subjects assigned to a control and an experimental group

Description

Data for Example 7.15

Usage

Drug

Arguments

Format

A data frame/tibble with 28 observations on two variables

trials

number of trials to master a task

group

a factor with levels control and experimental

References

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

Examples

Run this code

boxplot(trials ~ group, data = Drug,
        main = "Example 7.15", col = c("yellow", "red"))
wilcox.test(trials ~ group, data = Drug)
t.test(rank(trials) ~ group, data = Drug, var.equal = TRUE)

Run the code above in your browser using DataLab