contr.decreasing {EMC2}R Documentation

Contrast to enforce decreasing estimates

Description

Each level will be estimated as a reduction from the previous level

Usage

contr.decreasing(n)

Arguments

n

an integer. The number of items for which to create the contrast.

Value

a contrast matrix.

Examples

{
design_DDMaE <- design(data = forstmann,model=DDM, contrasts = list(E = contr.decreasing),
formula =list(v~S,a~E, t0~1, s~1, Z~1, sv~1, SZ~1),
constants=c(s=log(1)))
}

[Package EMC2 version 2.1.0 Index]