get_cor: Compute the prediction accuracy from Cross Validition

Description Usage Arguments Value Examples

View source: R/clmm.R

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 31, 2017, 4:22 a.m.

Related to get_cor in cgenpp...