bs2 {multpois}R Documentation

Between-subjects 2×2 design with dichotomous response

Description

This generic synthetic dataset has a dichotomous response Y and two factors X1 and X2. The response has categories {yes,no}. Factor X1 has levels {a,b}, and factor X2 has levels {c,d}. It also has a PId column for participant identifier. Each participant is on only one row.

Format

A data frame with 60 observations on the following 4 variables:

PId

a subject identifier with levels "1" ... "40"

X1

a between-subjects factor with levels "a", "b"

X2

a between-subjects factor with levels "c", "d"

Y

a dichotomous response with categories "yes", "no"

See Also

See glm.mp and glm.mp.con for complete examples.

Examples

data(bs2, package="multpois")

bs2$PId = factor(bs2$PId)
bs2$Y = factor(bs2$Y)
bs2$X1 = factor(bs2$X1)
bs2$X2 = factor(bs2$X2)
contrasts(bs2$X1) <- "contr.sum"
contrasts(bs2$X2) <- "contr.sum"

m = glm.mp(Y ~ X1*X2, data=bs2)
Anova.mp(m, type=3)
glm.mp.con(m, pairwise ~ X1*X2, adjust="holm")


[Package multpois version 0.2.0 Index]