Learn R Programming

ARTool (version 0.11.2)

ElkinAB: Synthetic 2x2 Within-Subjects Experiment

Description

Synthetic data from an experiment with two within-subjects factors (A and B) having two levels each.

Arguments

Format

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

S

a factor representing subjects with levels "s1" .. "s8"

A

a factor with levels "a1" "a2"

B

a factor with levels "b1" "b2"

Y

a numeric vector

Examples

Run this code
# \donttest{
data(ElkinAB, package = "ARTool")

## run contrast using the ART-C procedure on the data.
m <- art(Y ~ A*B + (1|S), data = ElkinAB)
art.con(m, "A:B")
# }

Run the code above in your browser using DataLab