powered by
Check dimensionality of contrast matrix
assertContrast(design, contrast)
Design matrix
Contrast matrix
Side effect is used: the function stops if the ncol(design) does not equal nrow(contrast)
# NOT RUN { design <- matrix(1:20, ncol=5) contrast <- matrix(c(-1,1,0,0,0, 0,1,0,-1,0), nrow=5) assertContrast(design, contrast) # }
Run the code above in your browser using DataLab