time_components function

Extract time components from a model

Extract time components from a model

For a mable with a single model column, return the model components that are indexed by time.

time_components(object, ...)

Arguments

  • object: A vital mable object with a single model column.
  • ...: Not currently used.

Returns

tsibble object containing the time components from the model.

Examples

aus_mortality |> dplyr::filter(State == "Victoria", Sex == "female") |> model(lee_carter = LC(log(Mortality))) |> time_components()