resample: Make fake data from resampled controls

Description Usage Arguments Details Value

View source: R/concensus-statistical-methods.R

Description

Make fake data from resampled controls.

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
resample(x, ...)

## Default S3 method:
resample(x, ...)

## S3 method for class 'concensusWorkflow'
resample(x, ...)

## S3 method for class 'concensusDataSet'
resample(x, n_replicates = 2, n_samples = 1000,
  prevalence = 0.5, positive_control. = NULL, ...)

Arguments

x

concensusWorkflow or concensusDataSet.

...

Other arguments.

n_replicates

Numeric.

n_samples

Numeric.

prevalence

Numeric. Positive controls (if present) are resampled at a frequency of n_samples * 2 * prevalence.

positive_control

Character. Pattern to assign positive controls on. Overrides any already-present positive control.

Details

None.

Value

concensusWorkflow or concensusDataSet.


eachanjohnson/concensusGLM documentation built on Sept. 25, 2018, 6:46 p.m.