gcFitSpline: Function to fit smoothed splines to growth data.

Description Usage Arguments Value See Also Examples

View source: R/gcFitSpline.R

Description

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

Usage

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

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

Example output

  mu.spline lambda.spline A.spline integral.spline
1  0.126682      10.66933 1.065409        15.58081

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