setNewAttr: Assign attributes to the newly "created" individuals in the...

Description Usage Arguments Value

View source: R/arrival.R

Description

Assign attributes to the newly "created" individuals in the cohort

Usage

1
setNewAttr(dat, at, nNew, scenario)

Arguments

dat

the current cohort

at

the current date

nNew

the number of new patients

scenario

the scenario's name

Value

This function returns the dat object with updated treatment status for each individual, and the cohort summary in dat$epi with the number of lost to follow-up lfu, and the number of patients treated onTrt at each time unit.


grlurton/ImpactSimul documentation built on March 8, 2021, 12:05 a.m.