get_cor: Compute the prediction accuracy from Cross Validition

Description Usage Arguments Value Examples

Description

Takes a matrix of predictions returned by get_pred, a list of masked phenotypes returned by cCV and the original phenotype vector and returns the correlation between predicted and observed values

Usage

1
get_cor(predictions,cv_pheno,y)

Arguments

predictions

Prediction matrix returned by get_pred

cv_pheno

List of masked phenotypes returned by cCV

y

Original unmasked phenotype vector that has been used in cCV

Value

Numeric scalar - Mean prediction accuracy measured as correlation between predicted and observed phenotypes

Examples

1
# see example of clmm.CV

cgenpp documentation built on May 2, 2019, 5:56 p.m.

Related to get_cor in cgenpp...