Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

makeDesignMatrix

Design Matrix


Description

Calculate Design Matrix from randomization sequence

Usage

makeDesignMatrix(R)

Arguments

R

randomization sequence, object of type randSeq

Value

makeDesignMatrix converts the randomization sequence R to its Matrix form. The resulting matrix has K columns, one for each treatment group, and N rows, one for each subject. If a subject i is randomized to a certain treatment j, the entry of (i,j) of the matrix will be one, and all other entries in this row will be zero.


randomizeR

Randomization for Clinical Trials

v2.0.0
GPL (>= 3)
Authors
David Schindler [aut], Diane Uschner [aut, cre], Marcia Viviane Rueckbeil [ctb], Martin Manolov [ctb], Thi Mui Pham [ctb], Michael Martini [ctb], Ralf-Dieter Hilgers [aut, ths], Nicole Heussen [aut, ths]
Initial release
2019-11-15

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.