deg_free: Retrieve the degrees of freedom from a 'logLik' object

View source: R/utils.R

deg_freeR Documentation

Retrieve the degrees of freedom from a logLik object

Description

Retrieve the degrees of freedom from a logLik object

Usage

deg_free(x)

Arguments

x

An object that implements a method for stats::logLik().

Value

The df attribute of the stats::logLik() of the given object.

Examples

# Retrieve the degrees of freedom model a changepoint model
DataCPSim |>
  segment() |>
  as.model() |>
  deg_free()
  

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