multibasta | R Documentation |
These functions allow users to run models with different functional forms on the same dataset, to perform model comparison and to visualize the results of the multiple runs.
multibasta(object, studyStart, studyEnd, models, shapes, ...) ## S3 method for class 'multibasta' summary(object, ...) ## S3 method for class 'multibasta' print(x, ...)
object |
For function |
x |
a |
studyStart |
The first year of the study. |
studyEnd |
The last year of the study. |
models |
A character vector specifying the models to be tested (e.g. “GO”, “WE”, “LO”) |
shapes |
A character vector specifying the shapes to be tested (e.g. “simple”, “Makeham”, “bathtub”). |
... |
Additional arguments to be passed to function |
runs |
A list with the |
DICs |
A matrix with the DIC values for each model, sorted from the model with lowest DIC to the model with highest DIC. |
models |
A summary table showing the models and shaped tested. |
Fernando Colchero colchero@imada.sdu.dk, Owen R. Jones jones@biology.sdu.dk, and Maren Rebke maren.rebke@avitec-research.de
basta
, as well as CensusToCaptHist
and MakeCovMat
for raw data formatting.
## Load data: data("sim1", package = "BaSTA") ## Run short version of BaSTA on the data: multiout <- multibasta(sim1, 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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.