Helper functions for handling linear fits.
lm_window(x, y, i0, h = 5)lm_parms(m)
linear model object (lm_window
resp. vector with parameters of the fit (lm_parms).
vector of independent variable (e.g. time).
vector of dependent variable (concentration of organisms).
index of first value used for a window.
with of the window (number of data).
linear model (lm
) object
The functions are used by a heuristic linear approach, similar to the ``growth rates made easy''-method of Hall et al. (2013).
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")