powered by
Calculates weights for Smith-Hazel index given economice weights and phenotypic and genotypic variance-covariance matrices.
smithHazel(econWt, varG, varP)
vector of economic weights
the genetic variance-covariance matrix
the phenotypic variance-covariance matrix
a vector of weight for calculating index values
# NOT RUN { G = 1.5*diag(2)-0.5 E = diag(2) P = G+E wt = c(1,1) smithHazel(wt, G, P) # }
Run the code above in your browser using DataLab