runtime: BayesX Program-Runtimes

Description Usage Arguments Value Author(s) See Also Examples

Description

Function to extract running times of the BayesX binary.

Usage

1
bayesx_runtime(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 runtime of the BayesX binary returned form system.time.

Author(s)

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

See Also

bayesx.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
## 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_runtime(b)

## End(Not run)

R2BayesX documentation built on May 21, 2017, 3:35 a.m.

Search within the R2BayesX package
Search all R packages, documentation and source code

Questions? Problems? Suggestions? Tweet to @rdrrHQ or email at ian@mutexlabs.com.

Please suggest features or report bugs in the GitHub issue tracker.

All documentation is copyright its authors; we didn't write any of that.