form_pools {pooling} | R Documentation |
Created a Pooled Dataset from a Subject-Specific One
Description
Useful for simulation studies on biospecimen pooling designs.
Usage
form_pools(dat, pool_sizes, num_each = NULL,
prop_each = rep(1/length(pool_sizes), length(pool_sizes)))
Arguments
dat |
Data frame with individual level data. |
pool_sizes |
Integer vector of pool sizes ordered from largest to smallest. |
num_each |
Integer vector specifying number of pools of each size. |
prop_each |
Numeric vector specifying proportion of pools of each size. |
Value
Data frame.
[Package pooling version 1.1.2 Index]