Description Usage Arguments Details Value Author(s) Examples
View source: R/makeOrthProjectors.R
Construct a list of orthogonal projector matrices corresponding to all strata of the experiment.
1 | makeOrthProjectors(BlkDesList)
|
BlkDesList |
a list of block design matrices generated by
|
The strata decomposition is performed within this function. The first step
is to convert the list of block design matrices generated by
makeBlkDesMat
to projection matrices using
projMat
. The second step is to use these projection matrices
to project the raw data vector from one stratum to next stratum of the
experiment; the resulting matrix corresponds to each stratum is the
orthogonal projector matrix of the given stratum.
A list containing matrices.
Kevin Chang
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 | design1 <- local({
Ani = as.factor(LETTERS[c(1,2,3,4,
5,6,7,8)])
Trt = as.factor(letters[c(1,1,1,1,
2,2,2,2)])
data.frame(Ani, Trt, stringsAsFactors = TRUE )
})
blk.str = "Ani"
rT = terms(as.formula(paste("~", blk.str, sep = "")), keep.order = TRUE)
blkTerm = attr(rT,"term.labels")
Z = makeBlkDesMat(design1, blkTerm)
Pb = makeOrthProjectors(Z)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.