calculateTransitionRates: Create Transition Rate Matrix

Description Usage Arguments Value

View source: R/calculateTransitionRates.R

Description

Create Transition Rate Matrix

Usage

1
calculateTransitionRates(transition_counts, n_per_stage)

Arguments

transition_counts

Matrix of transition counts (representing the number of individuals observed to transition from the stage represented by the column name to the stage represented by the row name).

n_per_stage

Observed number of individuals per stage

Value

Returns A Matrix of the same dimensions as transition_counts that gives the rates at which individuals transition from one stage to another. This is calculated as the number in a given transition_counts cell divided by the number of individuals observed in that stage (the stage given by the column name of that transition_counts cell).


ksauby/GTMNERRproc documentation built on May 20, 2019, 6:42 p.m.