Learn R Programming

grofit (version 1.1.1-1)

gcFitSpline: Function to fit smoothed splines to growth data.

Description

The function fits a smoothed spline to a set of growth data.

Usage

gcFitSpline(time, data, gcID = "undefined", control = grofit.control())

Arguments

time
Numeric vector containing the data for x-axes.
data
Numeric vector giving the growth values belonging to each element of time.
gcID
Vector (of any length) identifying the growth curve data.
control
Object of class grofit.control containing a list of options generated by the function grofit.control.

Value

raw.time
Raw data given to the function; equivalent to time.
raw.data
Raw data given to the function; equivalent to data.
gcID
Vector (of any length) identifying the growth curve data.
fit.time
Vector of fitted concentration values.
fit.data
Vector of fitted growth values.
parameters
List of estimated growth values from spline fit: A, maximum growth value; mu, maximum slope; lambda, lag-phase, integral, integral under growth curve.
parametersLowess
List of estimated growth values from lowess fit: A, maximum growth value; mu, maximum slope; lambda, lag-phase.
spline
smooth.spline object generated by smooth.spline.
reliable
Logical, indicating wether the provided data is reliable (to be set manually).
fitFlag
Logical, indicating wether a spline could fitted successfully to data.
control
Object of class grofit.control containing list of options passed to the function as control.

See Also

gcFitModel, gcBootSpline , summary.gcFitSpline, plot.gcFitSpline

Examples

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

Run the code above in your browser using DataLab