The hardware and bandwidth for this mirror is donated by dogado GmbH, the Webhosting and Full Service-Cloud Provider. Check out our Wordpress Tutorial.
If you wish to report a bug, or if you are interested in having us mirror your free-software or open-source project, please feel free to contact us at mirror[@]dogado.de.

Version: 3.0-6
Date: 2025-03-10
Title: Distribution of the 'BayesX' C++ Sources
Description: 'BayesX' performs Bayesian inference in structured additive regression (STAR) models. The R package BayesXsrc provides the 'BayesX' command line tool for easy installation. A convenient R interface is provided in package R2BayesX.
Depends: R (≥ 2.8.0)
Suggests: R2BayesX
SystemRequirements: GNU make, C++14
License: GPL-2 | GPL-3
URL: https://www.uni-goettingen.de/de/bayesx/550513.html
NeedsCompilation: yes
Packaged: 2025-03-10 08:13:28 UTC; nik
Author: Nikolaus Umlauf ORCID iD [aut, cre], Daniel Adler [aut], Thomas Kneib [aut], Stefan Lang [aut], Achim Zeileis ORCID iD [aut]
Maintainer: Nikolaus Umlauf <Nikolaus.Umlauf@uibk.ac.at>
Repository: CRAN
Date/Publication: 2025-03-10 10:10:18 UTC

Run BayesX

Description

Run BayesX program files from R.

Usage

run.bayesx(prg = NULL, verbose = TRUE, ...)

Arguments

prg

a file path to a BayesX program file. If set to NULL, BayesX will start in batch mode.

verbose

should output be printed to the R console during runtime of BayesX.

...

further arguments to be passed to system.

Details

Function uses system to run BayesX within an R session.

Value

If a prg file is provided, the function returns a list containg information if BayesX was succesfully launched and how long the process was running.

Author(s)

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

Examples

## Not run: 
## create a temporary directory for this example
dir <- tempdir()
prg <- file.path(dir, "demo.prg")

## generate some data
set.seed(111)
n <- 200

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

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

## write data to dir
write.table(dat, file.path(dir, "data.raw"),
  quote = FALSE, row.names = FALSE)

## create the .prg file
writeLines("
bayesreg b
dataset d 
d.infile using data.raw
b.outfile = mcmc
b.regress y = x(psplinerw2,nrknots=20,degree=3), family=gaussian predict using d
b.getsample", prg)

## run the .prg file from R
run.bayesx(prg)

## End(Not run)

These binaries (installable software) and packages are in development.
They may not be fully stable and should be used with caution. We make no claims about them.
Health stats visible at Monitor.