mwlsr.makeContrast: mwlsr.makeContrast

Description Usage Arguments Details Value

Description

Create a contrast matrix for computing statistical difference in means between levels of a design. For example if your model is based on a single multi-level factor and you want to compare the average values of one level verses another within the context of the full model then you'd specify those levels in this function and then call on mwlsr.contrastTest to perform the test.

Usage

1
mwlsr.makeContrast(y, lvls, x = NULL)

Arguments

y

First level or levels to contrast.

lvls

Either the factor levels or a full length factor vector or the design matrix from the mwlsr object or the mwlsr object itself.

x

Factor level or levels to contrast against those specified in y. If this is omitted then the level or levels specified in y are contrasted against all other levels.

Details

Levels specified for y or x must match levels in the design matrix associated with the model you plan to perform the contrast test within.

Value

Single-column matrix specifying the contrast


PfaffLab/mwlsr documentation built on May 12, 2019, 5:22 p.m.