Learn R Programming

BaSTA (version 2.0.1)

summary.multibasta: Summarizing multiple Bayesian Survival Trajectory Analsys (BaSTA) model output.

Description

These functions allow users visualize the output from function multibasta.

Usage

# S3 method for multibasta
summary(object, ...)
# S3 method for multibasta
print(x, ...)
# S3 method for multibasta
coef(object, showAll = FALSE, ...)

Value

Function coef.multibasta returns a list with the following objects:

coefficients

A list with the basta coefficients for the model with lowes DIC or, if showAll = TRUE, from each model and shape tested.

DICs

A matrix with the DIC values for each model, sorted from the model with lowest DIC to the model with highest DIC.

Arguments

object

An object of class “multibasta”.

x

An object of class “multibasta”.

showAll

Logical whether the coefficients from all models should be shown.

...

Additional arguments to be passed to function print, summary, and coef (see details).

Author

Fernando Colchero colchero@imada.sdu.dk, Owen R. Jones jones@biology.sdu.dk, and Maren Rebke maren.rebke@avitec-research.de

See Also

basta, multibasta.

Examples

Run this code
# \donttest{
## Load data:
data("bastaCMRdat", package = "BaSTA")

## Run short version of BaSTA on the data:
multiout <- multibasta(bastaCMRdat, studyStart = 51, studyEnd = 70, 
                 models = c("GO", "WE"), shapes = "simple",
                 niter = 100, burnin = 11, thinning = 10, 
                 nsim = 1, updateJumps = FALSE, parallel = FALSE)

## Print results:
summary(multiout, digits = 3)

# }

Run the code above in your browser using DataLab