Skip to contents

The returned object carries the degrees of freedom and effective number of observations used by the model, so stats::AIC() and stats::BIC() reproduce the values reported by summary().

Usage

# S3 method for class 'jvn_model'
logLik(object, ...)

Arguments

object

An object of class jvn_model.

...

Ignored.

Value

An object of class logLik.

Examples

# \donttest{
gdp_growth <- dplyr::filter(
  tsbox::ts_pc(reviser::gdp),
  id == "EA",
  time >= min(pub_date),
  time <= as.Date("2020-01-01")
)
gdp_growth <- tidyr::drop_na(gdp_growth)
df <- get_nth_release(gdp_growth, n = 0:3)

fit <- jvn_nowcast(df = df, e = 4, ar_order = 2, include_noise = FALSE)
logLik(fit)
#> 'log Lik.' 255.0923 (df=7)
AIC(fit)
#> [1] -496.1846
BIC(fit)
#> [1] -480.4451
# }