contrast2name: Create Rownames for a Contrast Matrix

contrast2nameR Documentation

Create Rownames for a Contrast Matrix

Description

Create rownames for a contrast matrix using the coefficients and the names of the coefficients. The rownames will be [value * name] == null, e.g. [beta + 4*alpha] = 0.

Usage

.contrast2name(contrast, null = NULL, sep = c("[", "]"))

Arguments

contrast

[matrix] a contrast matrix defining the left hand side of the linear hypotheses to be tested.

null

[vector, optional] the right hand side of the linear hypotheses to be tested.

sep

[character of length 2, optional] character used in rownames to wrap the left hand side of the equation.

Details

When argument NULL is null then the rownames will not be put into brackets and the right hand side will not be added to the name.

Value

a character vector.


bozenne/lavaSearch2 documentation built on Feb. 13, 2024, 10:18 p.m.