makeDesignMatrix function

Design Matrix

Design Matrix

Calculate Design Matrix from randomization sequence

makeDesignMatrix(R)

Arguments

  • R: randomization sequence, object of type randSeq

Returns

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.

  • Maintainer: Ralf-Dieter Hilgers
  • License: GPL (>= 3)
  • Last published: 2023-09-18

Useful links