r_score {TSDFGS}R Documentation

r-score

Description

This function calculate r-score doi:10.1007/s00122-019-03387-0 by given training set and test set.

Usage

r_score(X, X0)

Arguments

X

A numeric matrix. The training set genotypic information matrix can be given as genotype matrix (coded as -1, 0, 1) or principle component matrix (row: sample; column: marker).

X0

A numeric mareix. The test set genotypic information matrix can be given as genotype matrix (coded as -1, 0, 1) or principle component matrix (row: sample; column: marker).

Value

A floating-point number, r-score.

Author(s)

Jen-Hsiang Ou

Examples

data(geno)
## Not run: r_score(geno[1:50, ], geno[51:100])


[Package TSDFGS version 2.0 Index]