Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

SSdlf

self start for Declining Logistic Function


Description

Self starter for declining logistic function with parameters asym, a2, xmid and scal

Usage

dlf(time, asym, a2, xmid, scal)

SSdlf(time, asym, a2, xmid, scal)

Arguments

time

input vector (x) which is normally ‘time’, the smalles value should be close to zero.

asym

value of weight or mass at its peak (maximum)

a2

value of weight or mass at its trough (minimum)

xmid

time at which half of the maximum weight or mass has bean reached.

scal

scale parameter which controls the spread also interpreted in terms of time to go from xmid to approx. 0.63 asym

Details

Response function:

y = (asym - a2) / (1 + exp((xmid - time)/scal))) + a2

.

  • asym: upper asymptote

  • xmid: time when y is midway between w and a

  • scal: controls the spread

  • a2: lower asymptote

The four parameter logistic SSfpl is essentially equivalent to this function, but here the interpretation of the parameters is different and this is the form used in Oddi et. al. (2019) (see vignette).

Value

a numeric vector of the same length as x (time) containing parameter estimates for equation specified

dlf: vector of the same length as x (time) using the declining logistic function

Examples

## Extended example in the vignette 'nlraa-Oddi-LFMC'
x <- seq(0, 17, by = 0.25)
y <- dlf(x, 2, 10, 8, 1)
plot(x, y, type = "l")

nlraa

Nonlinear Regression for Agricultural Applications

v0.89
GPL-3
Authors
Fernando Miguez [aut, cre] (<https://orcid.org/0000-0002-4627-8329>), José Pinheiro [ctb, cph] (author of nlme::nlsList, nlme::predict.gnls, nlme::predict.nlme), Douglas Bates [ctb, cph] (author of nlme::nlsList, nlme::predict.gnls, nlme::predict.nlme), R-core [ctb, cph]
Initial release

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.