Learn R Programming

growthrates (version 0.8.4)

lm_window: Fit Exponential Growth Model with a Heuristic Linear Method

Description

Helper functions for handling linear fits.

Usage

lm_window(x, y, i0, h = 5)

lm_parms(m)

Value

linear model object (lm_window

resp. vector with parameters of the fit (lm_parms).

Arguments

x

vector of independent variable (e.g. time).

y

vector of dependent variable (concentration of organisms).

i0

index of first value used for a window.

h

with of the window (number of data).

m

linear model (lm) object

Details

The functions are used by a heuristic linear approach, similar to the ``growth rates made easy''-method of Hall et al. (2013).

References

Hall, B. G., H. Acar and M. Barlow 2013. Growth Rates Made Easy. Mol. Biol. Evol. 31: 232-238 tools:::Rd_expr_doi("10.1093/molbev/mst197")