readBinMatMultitrait | R Documentation |
Function to read effects saved by Multitrait when ETA[[j]]$saveEffects=TRUE.
readBinMatMultitrait(filename,storageMode="double")
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'. |
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.
Gustavo de los Campos, Paulino Perez-Rodriguez.
## 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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.