add_metastate_model: Create a state transition framework

Description Usage Arguments Value

View source: R/metastate.R

Description

Adds a state transition framework to a daps object.

Usage

1
add_metastate_model(daps, metastate, nodes, transitions)

Arguments

daps

A daps-class object to add a state-transition framework to.

nodes

A list the same nonzero length as state and transitions. It must contain character vectors, each naming the nodes (or variables) that should be predicted under the corresponding state.

transitions

A list the same nonzero length as state and nodes. It must contain one-sided formulas, each containing an expression that produces one of the elements of state when evaluated in the context of a row of temporal data (provided to simulate()).

state

A character vector of state names. Must be the same nonzero lenth as nodes and transitions.

Value

The input daps with the added component $metastate_model, an object of class daps_metastate_model.


NikKrieger/daps documentation built on March 4, 2020, 1:28 p.m.