eigen_rotation | R Documentation |
Do eigen decomposition of kinship matrix and rotate X
and
y
by that, i.e., pre-multiply by the transpose of the matrix
of eigenvectors. If Kva
and Kve_t
provided, just do
the "rotation".
eigen_rotation(K, y, X = NULL, Kva = NULL, Kve_t = NULL,
use_cpp = TRUE)
K |
Kinship matrix (required if |
y |
Phenotypes |
X |
Numeric matrix with covariates. If NULL, use a column of 1's (for intercept). |
Kva |
Eigenvalues of |
Kve_t |
= transposed eigenvectors of K (optional, ignored if |
use_cpp |
= if TRUE, use c++ version of code |
List containing Kva
, Kve_t
and rotated
y
and X
.
data(recla)
e <- eigen_rotation(recla$kinship, recla$pheno[,1], recla$covar)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.