R2BayesX (version 1.1-1)

bayesx_prgfile: BayesX Program-Files

Description

Function to show the internal BayesX program-files.

Usage

bayesx_prgfile(x, model = 1L)

Arguments

x

a fitted "bayesx" object.

model

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

Value

The program file used for estimation with BayesX.

See Also

bayesx.

Examples

Run this code
# NOT RUN {
## 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 prg-file
bayesx_prgfile(b)
# }

Run the code above in your browser using DataCamp Workspace