Skip to contents

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()
#> [1] 2