Learn R Programming

grofit (version 1.1.1-1)

gcBootSpline: Function to generate a bootstrap sample from a dataset of growth data.

Description

Bootstrapping of a growth curve.

Usage

gcBootSpline(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

Generates an object of class gcBootSpline
raw.time
Raw data given to the function; equivalent to time.
raw.data
Raw data given to the function; equivalent to data.
gcID
Identifier, given to the function as gcID.
boot.time
Table of concentration values per column, resulting from each spline fit of the bootstrap.
boot.data
Table of response values per column, resulting from each spline fit of the bootstrap.
boot.gcSpline
List containing all gcFitSpline objects generated by the call of gcFitSpline.
lambda
Vector containing all the estimates from the bootstrap sample for the lag-phase.
mu
Vector containing all the estimates from the bootstrap sample for the maximum slope.
A
Vector containing all the estimates from the bootstrap sample for the maximum growth value.
integral
Vector containing all the estimates from the bootstrap sample for the integral.
bootFlag
Logical, indicating an empty bootstrap sample.
control
Object of class grofit.control containing list of options passed to the function as control.

Details

A bootstrap sample (with replacement) is generated from the original data. For each of the bootstrap samples, the characteristic parameters $\lambda$, $\mu$, $A$ and integral are estimated.

See Also

gcFitModel, gcFitSpline, gcFit, summary.gcBootSpline, plot.gcBootSpline

Examples

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

Run the code above in your browser using DataLab