create_model_matrix: Create design matrix.

Description Usage Arguments Value

View source: R/helpers.R

Description

Create design matrix.

Usage

1
create_model_matrix(lst, add_intercept = FALSE)

Arguments

lst

A list. This list contains the samples from each group. The number of items in the list is equal to the number of groups.

add_intercept

Should a column of ones be included in the design matrix as the intercept.

Value

An indicator matrix using the reference coding.


colinorourke/simpower documentation built on May 21, 2019, 1:42 a.m.