Skip to contents

Extract parameter estimates from a KK model

Usage

# S3 method for class 'kk_model'
coef(object, ...)

Arguments

object

An object of class kk_model.

...

Ignored.

Value

A named numeric vector of parameter estimates.

Examples

df <- get_nth_release(
  tsbox::ts_span(
    tsbox::ts_pc(dplyr::filter(reviser::gdp, id == "US")),
    start = "1980-01-01"
  ),
  n = 0:1
)
df <- na.omit(dplyr::select(df, -c("id", "pub_date")))
fit <- kk_nowcast(df, e = 1, model = "KK", method = "OLS")
coef(fit)
#>           F0         G0_0         G0_1           v0         eps0 
#>  0.200854859  0.995563965 -0.001695210  1.598322193  0.006626059