names_from_WB: Figure out variable names given W & B contrast matrices

Description Usage Arguments Value

View source: R/names_from_WB.R

Description

Figure out variable names given W & B contrast matrices

Usage

1
names_from_WB(W, B, reverse = F)

Arguments

W

Optional contrast matrix as yielded from get_contrast_matrix() indicating the within-subjects contrasts passed as data when creating the above stanfit object. If present, X is ignored and B must be present.

B

Optional contrast matrix as yielded from get_contrast_matrix() indicating the between-subjects contrasts passed as data when creating the above stanfit object. W must be present, else B is ignored.

reverse

Logical indicating whether to reverse the order of the names.

Value

A vector of character strings indicating names of variables.


mike-lawrence/ezStan documentation built on Dec. 29, 2021, 1:30 a.m.