Learn R Programming

grofit (version 1.1.1-1)

drBootSpline: Function to create a bootstrap sample of splines fitted to dose-response curves.

Description

The function passes the numeric vectors conc and test to the function drFitSpline, which fits a smoothed spline to the data and estimates the EC50. Calling drFitSpline several times (specified by the options set in control) creates a bootstrap sample in form of a list of objects of class drFitSpline.

Usage

drBootSpline(conc, test, drID = "undefined", control = grofit.control())

Arguments

conc
Numeric vector, containing concentration information for dose-response. curve fit and EC50 estimation.
test
Numeric vector, containing response values related to concentrations.
drID
Character, identifying the dose-response data.
control
Object of class grofit.control containing a list of options generated by the function grofit.control.

Value

Generates an object of class drBootSpline
raw.conc
Raw data given to the function; equivalent to conc.
raw.test
Raw data given to the function; equivalent to test.
drID
String identifier given to the function; equivalent to drID.
boot.conc
Table of concentration values per column, resulting from each spline fit of the bootstrap.
boot.test
Table of response values per column, resulting from each spline fit of the bootstrap.
boot.drSpline
List containing all drFitSpline objects generated by the call of drFitSpline.
ec50.boot
Vector of estimated EC50 values from each bootstrap entry.
bootFlag
Logical, indicating an empty bootstrap sample.
control
Object of class grofit.control containing list of options passed to the function as control.

See Also

drFitSpline, summary.drBootSpline, plot.drBootSpline

Examples

Run this code
x <- 1:50
y <- 30/(1+exp(-0.5*(25-x)))+rnorm(50)
TestRun <- drBootSpline(x,y,"ID",grofit.control(nboot.dr=50))
print(summary(TestRun))
plot(TestRun)

Run the code above in your browser using DataLab