Learn R Programming

R2BayesX (version 1.1-5)

bayesx_logfile: BayesX Log-Files

Description

Function to show the internal BayesX log-files.

Usage

bayesx_logfile(x, model = 1L)

Value

The log-file returned from BayesX.

Arguments

x

a fitted "bayesx" object.

model

integer, for which model the log-file should be printed, i.e. if x contains more that one estimated model.

Author

Nikolaus Umlauf, Thomas Kneib, Stefan Lang, Achim Zeileis.

See Also

bayesx.

Examples

Run this code
if (FALSE) {
## generate some data
set.seed(111)
n <- 500

## regressor
dat <- data.frame(x = runif(n, -3, 3))

## response 
dat$y <- with(dat, 1.5 + sin(x) + rnorm(n, sd = 0.6))

## estimate model
b <- bayesx(y ~ sx(x), data = dat)

## now see the log-file
bayesx_logfile(b)
}

Run the code above in your browser using DataLab