Learn R Programming

tidychangepoint (version 1.0.0)

deg_free: Retrieve the degrees of freedom from a logLik object

Description

Retrieve the degrees of freedom from a logLik object

Usage

deg_free(x)

Value

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

Arguments

x

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

Examples

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

Run the code above in your browser using DataLab