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

Description Usage Arguments Details Value See Also Examples

View source: R/drFitSpline.R

Description

The function fits dose response curves.

Usage

1
2
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.

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.

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.

See Also

drFit, summary.drFitSpline, plot.drFitSpline

Examples

1
2
3
4
5
x <- 1:30
y <- 1/(1+exp(-0.5*(15-x)))+rnorm(30)/20
TestRun <- drFitSpline(x,y)
print(summary(TestRun))
plot(TestRun)

Example output

=== Dose response curve estimation ================
--- EC 50 -----------------------------------------
--> undefined
xEC50 14.8758758758759 yEC50 0.51559902180392


      EC50    yEC50 EC50.orig yEC50.orig
1 14.87588 0.515599  14.87588   0.515599

grofit documentation built on May 30, 2017, 4:08 a.m.