g_matrix_convert: Tranforms a 0-1-2 design matrix to a 0-1 matrix

Description Usage Arguments Value

View source: R/g_matrix_convert.R

Description

Tranforms a 0-1-2 design matrix to a 0-1 matrix

Usage

1

Arguments

X

The encoded design matrix in 0-1-2's

Value

Each factor gains two columns, with values (0,0) if the factor is 0, (1,0) if the factor is 1, and (0,1) is the factor is 2.


vinny-paris/optrotvec documentation built on April 9, 2021, 4:34 a.m.