Learn R Programming

lavaSearch2 (version 1.4)

contrast2name: 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)

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.

Value

a character vector.

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.