getMLsoln | R Documentation |
For a fixed value for hsq
, the heritability, calculate the
corresponding maximum likelihood estimates of beta
and
sigmasq
, with the latter being the total variance,
sigmasq_g + sigmasq_e
.
getMLsoln(hsq, Kva, y, X, reml = TRUE, use_cpp = TRUE)
hsq |
heritability |
Kva |
eigenvalues of K (calculated by |
y |
rotated phenotypes (calculated by |
X |
rotated covariate matrix (calculated by |
reml |
If TRUE, use REML; otherwise use ordinary maximum likelihood. |
use_cpp |
= if TRUE, use c++ version of code |
list containing beta
and sigmasq
, with residual
sum of squares and (if reml=TRUE
, log det (XSX)
) as
attributes.
data(recla)
e <- eigen_rotation(recla$kinship, recla$pheno[,1], recla$covar)
ml <- getMLsoln(0.5, e$Kva, e$y, e$X)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.