deg_free function

Retrieve the degrees of freedom from a logLik object

Retrieve the degrees of freedom from a logLik object

deg_free(x)

Arguments

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

Returns

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()