Description Usage Arguments Value
View source: R/distributeSampleFuncs.R
Given the number of cases, the number of controls, and number of batches, this function will first split each sample (regardless of case-control status) into a specified number of equally sized subsamples (numSubsamples). These subsamples will then be distributed into different batches. Each batch will contain cells from multiple samples (equal to numSubsamples)
1 | distribSplitSamples(ncases, nctrls, nbatches, numSubsamples)
|
ncases |
The number of cases. |
nctrls |
The number of controls. |
nbatches |
The number of batches that samples will be distributed into. |
numSubsamples |
The number of subsamples that each sample will be divided into |
Returns a list containing the following elements: a list containing the batch structure of the study (info on which samples are cases/controls and which batch they were placed in), a vector containing the names of all samples, a vector containing the names of case samples, and a vector containing the names of control samples. This output is used directly as input into our simulation functions (batchStructure parameter).
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.