Learn R Programming

selection.index (version 2.0.0)

gen_advance: Genetic Advance for PRE

Description

Genetic Advance for PRE

Usage

gen_advance(phen_mat, gen_mat, weight_mat)

Value

Genetic advance of character or character combinations

Arguments

phen_mat

phenotypic matrix value of desired characters

gen_mat

genotypic matrix value of desired characters

weight_mat

weight matrix value of desired characters

Examples

Run this code
gmat <- gen_varcov(seldata[, 3:9], seldata[, 2], seldata[, 1])
pmat <- phen_varcov(seldata[, 3:9], seldata[, 2], seldata[, 1])
gen_advance(phen_mat = pmat[1, 1], gen_mat = gmat[1, 1], weight_mat = weight[1, 2])

Run the code above in your browser using DataLab