fitegro: Fit exponential growth data

Description Usage Arguments Value Examples

View source: R/fitegro.R

Description

Fit the exponential growth model 'y = ylo*exp(k*x)' to data.

Usage

1
fitegro(x, y, data, k, ylo, weigh)

Arguments

x

A vector of linear scale values, usually time.

y

A vector of measured values in response to x.

data

A dataframe with the x and y variables.

k

A starting estimate for the rate constant, which has units of reciprocal x.

ylo

An estimate for the lowest value of y, or starting value.

weigh

Chooses regression weighting by 1/y^2. Default = FALSE.

Value

nls

Examples

1
2
3
#bacterial growth

fitegro(x=min, y=A600, data=culture, k= 1, ylo=1, weigh=FALSE)

TJMurphy/nlfitr documentation built on March 18, 2021, 12:33 p.m.