complete_eta: Construction of ETA with complete predictor data

Description Usage Arguments Value Examples

View source: R/complete_eta.R

Description

complete_eta returns a list with BGLR model parameters.

Usage

1
complete_eta(x, geno, as_kernel = FALSE, is_pedigree = FALSE, bglr_model)

Arguments

x

A matrix with BLUES of the complete predictor.

geno

NULL. Optional character vector with names corresponding to one of the two parental pools.

as_kernel

logical. Should a feature matrix or a variance covariance matrix be returned?

is_pedigree

logical. 'TRUE' if the input is a pedigree matrix.

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
data("hybrid_nms", "imp_snps")
geno <- vapply(strsplit(hybrid_nms, split = "_"), FUN = "[[", 1,
               FUN.VALUE = character(1))
x <- imp_snps[rownames(imp_snps) %in% geno, ]
eta <- complete_eta(x = x, geno = geno, bglr_model = "BRR")
str(eta)

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