tdPercentiles: Calculate percentiles

Description Usage Arguments Examples

View source: R/percentiles.R

Description

Calculate the percentiles for a given model.

Usage

1
tdPercentiles(model, n, upper = model$m$getPars()["t"] * 10, ...)

Arguments

model

An object of class timedist.

n

numeric(n). A vector of percentiles to be calculated.

upper

numeric(1). The upper end point of the interval to search.

...

Additional parameters to be passed to stats::uniroot().

Examples

1
2
3
4
tdTilia <- tdData(tilia, x = "Day", y = "Trees")
model <- timedist(data = tdTilia, x = "Day", y = "propMax", r = 0.1, c = 0.5, t = 120)
tdPercentiles(model, n = 0.5)
tdPercentiles(model, n = seq(0, 0.9, 0.1))

nlstimedist documentation built on Aug. 27, 2020, 9:07 a.m.