View source: R/predict_selection_score.R
| predict_selection_score | R Documentation |
Predict selection index scores
predict_selection_score(index_df, data, genotypes)
index_df |
Data frame returned by lpsi() |
data |
Raw phenotypic data matrix/data frame (observations x traits) |
genotypes |
Vector of genotype/treatment labels for each observation |
Data frame of selection index scores by genotype
gmat <- gen_varcov(seldata[, 3:9], seldata[, 2], seldata[, 1])
pmat <- phen_varcov(seldata[, 3:9], seldata[, 2], seldata[, 1])
cindex <- lpsi(ncomb = 1, pmat = pmat, gmat = gmat, wmat = weight[, -1], wcol = 1)
predict_selection_score(cindex, data = seldata[, 3:9], genotypes = seldata[, 2])
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.