impute_eta: Imputation of ETA

Description Usage Arguments Value Examples

View source: R/impute_eta.R

Description

impute_eta returns a list with BGLR model parameters.

Usage

1
2
impute_eta(x, y, as_kernel = TRUE, is_pedigree = TRUE, geno = NULL,
  bglr_model)

Arguments

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 BGLR().

Value

A list with model parameters used as input in the BGLR() call.

Examples

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)

mwesthues/sspredr documentation built on May 23, 2019, 10:56 a.m.