Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

readBinMat

readBinMat


Description

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

Usage

readBinMat(filename,byrow=TRUE)

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.

Value

A matrix with samples of regression coefficients.

Author(s)

Gustavo de los Campos.

Examples

## 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

Bayesian Generalized Linear Regression

v1.0.8
GPL-3
Authors
Gustavo de los Campos, Paulino Perez Rodriguez,
Initial release
2018-11-24

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.