Learn R Programming

grofit (version 1.1.1-1)

drFitSpline: Function to fit smoothed splines to dose reponse data.

Description

The function fits dose response curves.

Usage

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

Arguments

conc
Numeric vector, concentration (dose) data.
test
Numeric vector, response data beloning to conc.
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 drFit
raw.conc
Raw data provided to the function as conc.
raw.test
Raw data provided to the function as test.
drID
Character, identifying the dose response data.
fit.conc
Fitted concentration values.
fit.test
Fitted response values.
spline
nls object generated by the smooth.spline function.
fitFlag
Logical, indicating wether a spline could fitted successfully to data.
reliable
Logical, indicating wether the provided data is reliable (to be set manually).
control
Object of class grofit.control containing a list of options passed to the function as control.
parameters
List of parameters estimated from dose response curve fit.
EC50
Half maximal concentration.
yEC50
Response value related to EC50.
EC50.orig
EC50 value in original scale, if a transformation was applied.
xEC50.orig
Response value for EC50 in original scale, if a transformation was applied.

Details

The function uses the R internal function smooth.spline to fit a spline to the provided data. From the resulting curve the EC50 value is calculated.

See Also

drFit, summary.drFitSpline, plot.drFitSpline

Examples

Run this code
x <- 1:30
y <- 1/(1+exp(-0.5*(15-x)))+rnorm(30)/20
TestRun <- drFitSpline(x,y)
print(summary(TestRun))
plot(TestRun)

Run the code above in your browser using DataLab