model_variance: Compute model variance

View source: R/class-mod_cpt.R

model_varianceR Documentation

Compute model variance

Description

Compute model variance

Usage

model_variance(object, ...)

Arguments

object

A model object implementing residuals() and nobs()

...

currently ignored

Details

Using the generic functions residuals() and nobs(), this function computes the variance of the residuals.

Note that unlike stats::var(), it does not use n-1 as the denominator.

Value

A double vector of length 1


tidychangepoint documentation built on April 4, 2025, 4:31 a.m.