Compute QTLs predicted R squared in a validation set (mppData.vs
).
These QTLs have been previously detected in a training set
(mppData.ts
). The global R squared (R2 = cor(y.ts,y.pred.ts)^2) is
obtained using the Pearson squared correlation between the observed trait
values in the validation set (y.vs) and predicted values using estimated QTL
effects in the training set (y.pred.vs = X.vs * B.ts).
After that the values are corrected by the general or within cross
heritability her
. By default her = 1
which means that the
R squared represent the proportion of explained phenotypic variance. The
values are returned per cross (R2.cr
) or averaged at the population
level (glb.R2
).
Partial R squared statistics are also calculated for each individual position.
The partial R squared are computed by making the difference between the
global R squared and the R squared computed without the ith position.