Learn R Programming

heemod (version 0.4.0)

compute_counts: Compute Count of Individual in Each State per Cycle

Description

Given an initial number of individual and an evaluated transition matrix, returns the number of individual per state per cycle.

Usage

compute_counts(transition_matrix, init, method)

Arguments

transition_matrix
An eval_matrix object.
init
numeric vector, same length as number of model states. Number of individuals in each model state at the beginning.
method
Counting method.

Value

A cycle_counts object.

Details

Use the method argument to specify if transitions are supposed to happen at the beginning or the end of each cycle. Alternatively linear interpolation between cycles can be performed.