readBinMatMultitrait {BGLR}R Documentation

readBinMatMultitrait

Description

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

Usage


	readBinMatMultitrait(filename,storageMode="double")

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'.

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.

Author(s)

Gustavo de los Campos, Paulino Perez-Rodriguez.

Examples


## Not run: 
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')


## End(Not run)


[Package BGLR version 1.1.2 Index]