R: Puzzle completion times from Hays (1994)

puzzles {BayesFactor} | R Documentation

## Puzzle completion times from Hays (1994)

### Description

Puzzle completion time example data from Hays (1994).

### Format

A data frame with 48 observations on 3 variables.

RT

  Puzzle completion time, in minutes

ID

  the subject identifier

shape

  shape of the puzzle (round or square)

color

  color content of the puzzle (monochromatic or color)

### Details

Hays (1994; section 13.21, table 13.21.2, p. 570) describes a experiment wherein 12 participants complete four puzzles each. Puzzles could be either square or round, and either monochromatic or in color. Each participant completed every combination of the two factors.

### Source

Hays, W. L. (1994), Statistics (5th edition), Harcourt Brace, Fort Worth, Texas

### Examples

    data(puzzles)

    ## classical ANOVA
    ## Both color and shape are significant, interaction is not
    classical <- aov(RT ~ shape*color + Error(ID/(shape*color)), data=puzzles)
    summary(classical)

    ## Bayes Factor
    ## Best model is main effects model, no interaction
    anovaBF(RT ~ shape*color + ID, data = puzzles, whichRandom = "ID", progress=FALSE)

[Package BayesFactor version 0.9.12-4.2 Index]