Learn R Programming

paleoTS (version 0.6.2)

fit3models: Fit a set of standard evolutionary models

Description

Fit a set of standard evolutionary models

Usage

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

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

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.

Arguments

y

a paleoTS object

silent

if TRUE, results are returned as a list and not printed

method

"Joint", "AD", or "SSM"; see fitSimple

...

other arguments passed to model fitting functions

Functions

  • fit4models(): add model of "Strict Stasis" to the three models

Details

Function fit3models fits the general (biased) random walk (GRW), unbiased random walk (URW), and Stasis models. In addition to these three, fit4models also fits the model of Strict Stasis.

See Also

fitSimple

Examples

Run this code
x <- sim.GRW(ns = 50, ms = 0.2)
fit4models(x)

Run the code above in your browser using DataLab