fit_growth: Fit a Growth Curve to the Given Data

Description Usage Arguments Value Examples

Description

fit_growth fits a growth curve using either a parametric model or splines.

Usage

1
2
3
fit_growth(df, time, data, model = "logistic", ...)

fit_growth_(df, time_col, data_col, model = "logistic", ...)

Arguments

df

a data frame

time

column in df that contains time data

data

column in df that contains growth data (default: TRUE)

model

name of the model to fit. One of:

  • logistic: a logistic function (default)

  • logistic4p: a 4-parameter logistic function

  • gompertz: a Gompertz function

  • loess: a LOESS curve

  • linear: a linear function

  • spline: spline interpolation of the data

  • grofit_parametric: a parametric function. grofit will attempt to fit each of the following models and return the best fit according to AIC.

  • grofit_logistic: a logistic function (using grofit)

  • grofit_gompertz: a Gompertz function (using grofit)

  • grofit_gompertz.exp: a modified Gompertz function (using grofit)

  • grofit_richards: a Richards growth curve (using grofit)

  • grofit_spline: spline interpolation (using grofit)

...

Additional arguments for the specific model function

time_col

String giving the name of the column in df that contains time data

data_col

String giving the name of the column in df that contains growth data

Value

A growthcurve object

Examples

1
2
3
4
## Not run: 
# Fit the data given in columns Time and OD600
fit_growth(mydata, Time, OD600, model = "logistic")
## End(Not run)

briandconnelly/growthcurve documentation built on May 13, 2019, 5:13 a.m.