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


Search within the cgenpp package
Search all R packages, documentation and source code

Questions? Problems? Suggestions? or email at ian@mutexlabs.com.

Please suggest features or report bugs with the GitHub issue tracker.

All documentation is copyright its authors; we didn't write any of that.