Description Usage Arguments Value Examples
impute_eta
returns a list with BGLR model parameters.
1 2 | impute_eta(x, y, as_kernel = TRUE, is_pedigree = TRUE, geno = NULL,
bglr_model)
|
x |
A matrix with BLUES of the complete predictor. |
y |
A matrix with BLUEs of the incomplete predictor. |
as_kernel |
logical. Should a feature matrix or a variance covariance matrix be returned? |
is_pedigree |
logical. Should be set to 'TRUE' if 'x' is a pedigree matrix. |
geno |
NULL. Optional character vector with names corresponding to one of the two parental pools. |
bglr_model |
A character specifying the algorithm that shall be used \
when calling |
A list with model parameters used as input in the BGLR()
call.
1 2 3 4 5 6 7 8 | data("hybrid_nms", "mrna", "imp_snps")
geno <- vapply(strsplit(hybrid_nms, split = "_"), FUN = "[[", 1,
FUN.VALUE = character(1))
x <- imp_snps[rownames(imp_snps) %in% geno, ]
y <- mrna[rownames(mrna) %in% geno, ]
eta <- impute_eta(x = x, y = y, as_kernel = TRUE, is_pedigree = FALSE,
geno = geno, bglr_model = "BRR")
str(eta)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.