fitggro: Fit Gompertz model for growth curves

Description Usage Arguments Value Examples

View source: R/fitggro.R

Description

Fit the Gompertz growth model to date: 'y = ylo + d*exp(-exp(((k*exp(1))/d)*(lambda-x)+1))'

Usage

1
fitggro(x, y, data, k, ylo, d, lambda, weigh)

Arguments

x

A vector of linear values, usually time.

y

A vector of measured values in response to x.

data

A dataframe with x and y.

k

The estimate for maximal growth rate.

ylo

The estimate for the lowest value of y.

d

The estimate for the difference between the lowest and highest values of y.

lambda

The estimate for the growth lag, in units of the x scale.

weigh

When TRUE, weighted regression by 1/y^2. Default is FALSE.

Value

nls

Examples

1
2
3
4
# L.plantarium growth at 35C.

fitggro(x=hour, y=lnN_N0, data=plantdat,
k=1, ylo=0, d=8, lambda=3, weigh=FALSE)

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