Learn R Programming

heemod (version 1.0.2)

compute_counts.eval_part_surv: 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 eval_part_surv
compute_counts(x, init, inflow, ...)

compute_counts(x, ...)

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

Value

A cycle_counts object.

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.