update.CTMCdive: Add or remove terms from a CTMC model and fit the new model

View source: R/ctmc_dive.R

update.CTMCdiveR Documentation

Add or remove terms from a CTMC model and fit the new model

Description

Add or remove terms from a CTMC model and fit the new model

Usage

update.CTMCdive(mod, change, which = 0, print = FALSE)

Arguments

mod

model to be amended

change

change to formula to make, see ?update.formula

which

which formula to update, 1 = dive, 2 = surface; if which = 0 then three models are fit where change is made to each formula individually and then to both, an AIC table is printed.

Value

fitted model if which = 1,2 or list of three fitted models if which = 0


r-glennie/CTMCdive documentation built on July 3, 2023, 11:01 p.m.