predict_selection_score: Predict selection index scores

View source: R/predict_selection_score.R

predict_selection_scoreR Documentation

Predict selection index scores

Description

Predict selection index scores

Usage

predict_selection_score(index_df, data, genotypes)

Arguments

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

Value

Data frame of selection index scores by genotype

Examples

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])


selection.index documentation built on March 9, 2026, 1:06 a.m.