generateR: generateR function, R package version of MultiTrans

Description Usage Arguments Value Examples

View source: R/generateR.R

Description

generateR function estimate correlation in the rotated space

Usage

1
generateR(X, K, VC, outPath, outName)

Arguments

X

is the SNP matrix, individual x snp

K

is obtained from the Kinship function

VC

is obtained from the varComp function

outPath

is a parameter that specifies the path of the result file

outName

is a parameter that specifies the name of the result file

Value

estimated correlation in the rotated space

Examples

1
2
3
4
5
   X <- as.matrix(read.table(SNPData))
   K <- Kinship(X, outPath, outName)
   VC <- varComp(Y, K, numThreads, outPath, outName)

   gR <- generateR(X, K, VC, outPath, outName)

2eding/MTVR documentation built on Sept. 3, 2020, 11:51 a.m.