vcov.modeler: Variance-Covariance matrix for an object of class 'modeler'

View source: R/06_vcov.R

vcov.modelerR Documentation

Variance-Covariance matrix for an object of class modeler

Description

Extract the variance-covariance matrix for the parameter estimates from an object of class modeler.

Usage

## S3 method for class 'modeler'
vcov(object, id = NULL, ...)

Arguments

object

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

id

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

...

Additional parameters for future functionality.

Value

A list of matrices, where each matrix represents the variance-covariance matrix of the estimated parameters for each group or fit.

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, 2, 45)
  )
print(mod_1)
vcov(mod_1)

flexFitR documentation built on April 16, 2025, 5:09 p.m.