forcing: Declare a time varying covariate to be a forcing variable...

View source: R/forcing.R

forcingR Documentation

Declare a time varying covariate to be a forcing variable that moves individuals between model compartments at discrete times. Flow in and out of model compartments is allocated proportionally to the compartment counts in the source and destination compartments.

Description

Declare a time varying covariate to be a forcing variable that moves individuals between model compartments at discrete times. Flow in and out of model compartments is allocated proportionally to the compartment counts in the source and destination compartments.

Usage

forcing(tcovar_name, from, to)

Arguments

tcovar_name

name of the time varying covariate

from

vector of compartment names from which individuals exit

to

vector of compartment names to which individuals enter

Value

list containing the forcing specification


fintzij/stemr documentation built on March 25, 2022, 12:25 p.m.