fit9models: Fit large set of models to a time-series

View source: R/complexModels.R

fit9modelsR Documentation

Fit large set of models to a time-series

Description

This function fits nine models to a time-series following Hunt et al. (2015). These include the simple models fit by fit4models along with mode shift and punctuation models.

Usage

fit9models(y, silent = FALSE, method = c("Joint", "AD"), ...)

Arguments

y

a paleoTS object

silent

logical, if TRUE, progress updates are suppressed

method

parameterization to use: Joint or AD; see Details

...

other arguments, passed to optimization functions

Value

if silent = FALSE, a table of model fit statistics, also printed to the screen. if silent = TRUE, a list of the model fit statistics and model parameter values.

References

Hunt, G., M. J. Hopkins and S. Lidgard. 2015. Simple versus complex models of trait evolution and stasis as a response to environmental change. PNAS 112(16): 4885-4890.

Examples

## Not run: 
x <- sim.Stasis.RW(ns = c(15, 15), omega = 0.5, ms = 1, order = "Stasis-RW")
plot(x)
fit9models(x)

## End(Not run)

paleoTS documentation built on Sept. 11, 2024, 9:18 p.m.