readBinMat: readBinMat

Description Usage Arguments Value Author(s) Examples

View source: R/utils.R

Description

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

Usage

1
	readBinMat(filename,byrow=TRUE,storageMode="double")

Arguments

filename

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

byrow

(logical), if TRUE the matrix is created by filling its corresponding elements by rows.

storageMode

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

Value

A matrix with samples of regression coefficients.

Author(s)

Gustavo de los Campos.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
## Not run: 
#Demos

library(BGLR)
data(wheat)
y=wheat.Y[,1] ; X=scale(wheat.X)
dir.create('test_saveEffects')
setwd('test_saveEffects')
fm=BGLR(y=y,ETA=list(list(X=X,model='BayesB',saveEffects=TRUE)),nIter=12000,thin=2,burnIn=2000)
B=readBinMat('ETA_1_b.bin')


## End(Not run)

BGLR documentation built on Nov. 13, 2021, 9:07 a.m.

Related to readBinMat in BGLR...