smithHazel: Calculate Smith-Hazel weights

View source: R/misc.R

smithHazelR Documentation

Calculate Smith-Hazel weights

Description

Calculates weights for Smith-Hazel index given economice weights and phenotypic and genotypic variance-covariance matrices.

Usage

smithHazel(econWt, varG, varP)

Arguments

econWt

vector of economic weights

varG

the genetic variance-covariance matrix

varP

the phenotypic variance-covariance matrix

Value

a vector of weight for calculating index values

Examples

G = 1.5*diag(2)-0.5
E = diag(2)
P = G+E
wt = c(1,1)
smithHazel(wt, G, P)


AlphaSimR documentation built on Nov. 2, 2023, 6:01 p.m.