confint.modeler {flexFitR}R Documentation

Confidence intervals for a modeler object

Description

Extract confidence intervals for the estimated parameters of an object of class modeler.

Usage

## S3 method for class 'modeler'
confint(object, parm = NULL, level = 0.95, id = NULL, ...)

Arguments

object

An object of class modeler, typically the result of calling the modeler() function.

parm

A character vector specifying which parameters should have confidence intervals calculated. If NULL, confidence intervals for all parameters are returned. Default is NULL.

level

A numeric value indicating the confidence level for the intervals. Default is 0.95, corresponding to a 95% confidence interval.

id

An optional unique identifier to filter by a specific group. Default is NULL.

...

Additional parameters for future functionality.

Value

A tibble containing the lower and upper confidence limits for each specified parameter.

Author(s)

Johan Aparicio [aut]

Examples

library(flexFitR)
data(dt_potato)
mod_1 <- dt_potato |>
  modeler(
    x = DAP,
    y = Canopy,
    grp = Plot,
    fn = "fn_lin_plat",
    parameters = c(t1 = 45, t2 = 80, k = 0.9),
    subset = c(15, 35, 45)
  )
print(mod_1)
confint(mod_1)

[Package flexFitR version 1.2.0 Index]