nlstimedist (version 1.1.4)

tdPercentiles: Calculate percentiles

Description

Calculate the percentiles for a given model output

Usage

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

Arguments

model

An object of class timedist.

n

A vector of percentiles to be calculated.

upper

The upper end point of the interval to search.

...

Additional parameters to be passed to uniroot.

Examples

Run this code
# NOT RUN {
tdTilia <- tdData(tilia, x = "Day", y = "Trees")
model <- timedist(data = tdTilia, x = "Day", y = "propMax", r = 0.1, c = 0.5,
                  t = 120)
model
tdPercentiles(model, n = 0.5)
tdPercentiles(model, n = seq(0, 0.9, 0.1))

# }

Run the code above in your browser using DataLab