bootstrap: Create bootstrapped datasets based on the dose response...

Description Usage Arguments Details Value Note Author(s) References See Also Examples

View source: R/dataflow.R

Description

In order to achieve confidence intervals for summary statistics it is necessary to bootstrap the data. The bootstrapped datasets are normalised using the function bgModel. Since this will take some time we recommend only using 50 bootstrap samples.

Usage

1
2
3
4
bootstrap(A.data, update = TRUE, n.samples = 50, max.iter = 100, 
          type = c("parametric", "residual", "nonparametric"),  
          progressbar = "text", verbose = FALSE, save = TRUE, 
          shiny.input = NULL, session = NULL)

Arguments

A.data

An A.data object created by the function bgModel.

update

Should the analysis be updated or run from scratch. When set to TRUE only new experiments will be normalised. When FALSE The normalisation is conducted for all experiments.

n.samples

Numeric vslue indicating the number of bootstrap samples to create. Defeaults to 50.

max.iter

Numeric value indicating the maximum number of iterations allowed in order to obtain n.samples If for some reason the bootstrap procedure fails to create a data set, this value indicates the maximum number of iterations the precedure can be run. Should be at larger than or equal to n.samples. Defeaults to 100.

type

Character indicating the bootstrap procedure to use. Current implimentation includes parametric and residual.

progressbar

The type of progress bar used to show how far along the function is. Can be either "window", text or none.

verbose

Should the procedure indicate what bootstrap iteration it is currently working on.

save

Should the data be saved.

shiny.input

Used for the shiny server.

session

Used for the shiny server.

Details

It is possible to choose between parametric bootstrap and residual bootstrap. In parametric bootstrap the model fitted to the data is used generate new absorbance values. In residual bootstrap the absorbance values are generated by sampling the residuals of the fitted model.

Value

The ouput of the function is an A.data object of class bgModel. This is a list with the following components:

meta.list

This is a list of meta data objects.

call

A list containing information regarding the call to the function.

auxiliary

List of auxiliary data used by other functions.

data

List of data frames. The pre-processed bootstrapped data is stored in the element bs.mean columns BS:1,..., BS:n.samples.

drug.color.correct

Contains the results of the fitted dose reponse experiments for colour correction.

fits

List of the fitted objects. The fitted objects for model corrections is stored in element bgModel

Note

After the data have been read into R the need to be preprocessed. If any drug colour correction plates have been established continue to the funktion drugColorCorrection otherwise continue to the function bgModel.

Author(s)

The function was written at department of haematology, Aalborg University Hospital and maintained by Steffen Falgreen.

References

Steffen Falgreen et al. Exposure time independent summary statistics for assessment of drug dependent cell line growth inhibition (2013)

See Also

createMetaData,readDBFData,bgModel,plotdrugColorCorrection

Examples

1
2
3
4
5
6
7
8
require(DoseR)
## load Dose Response data
data(A.data)

A.data <- bootstrap(A.data    = A.data, 
                    n.samples = 50, 
                    max.iter  = 60,
                    type      = "parametric")

HaemAalborg/DoseR documentation built on Jan. 17, 2021, 7:40 a.m.