Learn R Programming

contrastable (version 1.0.2)

.set_intercept: Set intercept for contrast matrix

Description

Given a contrast matrix and a desired level, change the intercept via manipulating underlying hypothesis matrix.

Usage

.set_intercept(contrast_matrix, intercept_level)

Value

Manipulated contrast matrix

Arguments

contrast_matrix

Contrast matrix to use

intercept_level

Level to use as intercept, must be present in the row names of the contrast matrix