Learn R Programming

CDsampling (version 0.1.6)

iset_func_trauma: trauma_data example (see Huang, Tong, Yang (2023)) specific function for finding index set that if allocation of that index add "1", the new allocation still falls within the constraint Used in approxtoexact_constrained_func()

Description

trauma_data example (see Huang, Tong, Yang (2023)) specific function for finding index set that if allocation of that index add "1", the new allocation still falls within the constraint Used in approxtoexact_constrained_func()

Usage

iset_func_trauma(allocation)

Value

list of TRUE and FALSE, if TRUE, it means the allocation of this index will fall out of the constraint with more subject; if TURE, it means the allocation of this index can add more subjects

Arguments

allocation

the exact allocation

Examples

Run this code
iset_func_trauma(allocation=c(50,30,10,10,100,100,200,10))



Run the code above in your browser using DataLab