Learn R Programming

r2glmm (version 0.1.2)

make.partial.C: Generate partial contrast matrices

Description

Generate partial contrast matrices

Usage

make.partial.C(rows, cols, index)

Value

A contrast matrix designed to test the fixed effect corresponding to index in the vector of fixed effects.

Arguments

rows

Number of rows in the contrast matrix

cols

Number of columns in the contrast matrix

index

A number corresponding to the position of the fixed effect in the vector of fixed effect parameter estimates.

Examples

Run this code
make.partial.C(4, 5, 2)
make.partial.C(4, 5, 3)
make.partial.C(4, 5, 2:4)

Run the code above in your browser using DataLab