summary.multibasta: Summarizing multiple Bayesian Survival Trajectory Analsys...

View source: R/basta.R

summary.multibastaR Documentation

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

Description

These functions allow users visualize the output from function multibasta.

Usage

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

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).

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.

Author(s)

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


## 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)



BaSTA documentation built on April 12, 2025, 2:31 a.m.