compute_counts: Compute Count of Individual in Each State per Cycle

View source: R/strategy_eval.R

compute_counts.eval_part_survR 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

## S3 method for class 'eval_part_surv'
compute_counts(x, init, inflow, ...)

compute_counts(x, ...)

## S3 method for class 'eval_matrix'
compute_counts(x, init, inflow, ...)

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.


heemod documentation built on May 29, 2024, 8:17 a.m.