compute_counts: Compute Count of Individual in Each State per Cycle

View source: R/strategy_eval.R

compute_countsR Documentation

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(x, ...)

Arguments

x

An eval_matrix or eval_part_surv object.

init

numeric vector, same length as number of model states. Number of individuals in each model state at the beginning.

inflow

numeric vector, similar to init. Number of new individuals in each state per cycle.

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.

Value

A cycle_counts object.


pierucci/heemod documentation built on July 17, 2022, 9:27 p.m.