Learn R Programming

flexFitR (version 1.2.2)

confint.modeler: Confidence intervals for a modeler object

Description

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

Usage

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

Value

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

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.

Author

Johan Aparicio [aut]

Examples

Run this code
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)

Run the code above in your browser using DataLab