allocate_treatment: Allocate treatment

View source: R/events_hospital.R

allocate_treatmentR Documentation

Allocate treatment

Description

sample a subset of individuals who will receive treatment. The subset is allways smaller than the limit of treatments available minus those already receiving treatment

Usage

allocate_treatment(variables, need_treatment, treated_state, limit)

Arguments

variables

Model variables

need_treatment

a individual::Bitset of individuals who need treatment

treated_state

a list states for individuals receiving treatment

limit

the number of individuals who can receive treatment


mrc-ide/safir documentation built on Aug. 2, 2022, 10:47 a.m.