getMat | R Documentation |
For convenience only, extracting a specific matrix from the "Matrices" element of a 'VCA' object if this matrix exists.
getMat(obj, mat)
obj |
... (VCA) object |
mat |
... (character) string specifying the matrix to be extracted |
When 'mat="Z"' the design matrix of random effects will be returned. If one is interested in the design matrix of random effects for a specific variance component use a name like "Z" + NAME, where NAME has to be equal to the name of the VC in the 'VCA' object (see examples). The same applies to the A-matrices in the quadratic forms, use "A" + NAME for extracting a specific A-matrix.
(matrix) as requested by the user
## Not run:
data(dataEP05A2_1)
fit <- anovaVCA(y~day/run, dataEP05A2_1)
getMat(fit, "Z")
getMat(fit, "Zday")
getMat(fit, "Zday:run")
getMat(fit, "Zerror")
fit2 <- anovaMM(y~day/(run), dataEP05A2_1)
getMat(fit2, "V") # Var(y)
getMat(fit2, "G") # Var(re)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.