Learn R Programming

BGLR (version 1.1.3)

readBinMatMultitrait: readBinMatMultitrait

Description

Function to read effects saved by Multitrait when ETA[[j]]$saveEffects=TRUE.

Usage

readBinMatMultitrait(filename,storageMode="double")

Value

A 3D array, with dim=c(nRow,p,traits), where nRow number of MCMC samples saved, p is the number of predictors and traits is the number of traits.

Arguments

filename

(string), the name of the file to be read.

storageMode

(character), the storage mode used to save effects via ETA[[j]]$storageMode: 'double' (default) or 'single'.

Author

Gustavo de los Campos, Paulino Perez-Rodriguez.

Examples

Run this code

if (FALSE) {
library(BGLR)

data(wheat)
y<-wheat.Y 
X<-wheat.X

fm<-Multitrait(y=y,ETA=list(list(X=X,model='BRR',saveEffects=TRUE)),
                      nIter=1000,thin=10,burnIn=500)
                      
 B<-readBinMatMultitrait('ETA_1_beta.bin')

}

Run the code above in your browser using DataLab