R/fitted.R

Defines functions fitted.garma_model

Documented in fitted.garma_model

#' Extract fitted values
#'
#' Fitted values are 1-step ahead predictions.
#' @param object The garma_model object
#' @param ... Other parameters. Ignored.
#' @return (double) array of 1-step ahead fitted values for the model.
#' @export
fitted.garma_model <- function(object, ...) {
  .byRef(object) # allows us to update the values of object
  if (!"fitted" %in% names(object)) {
    object <- internal_fitted_values(object)
  }
  return(object$fitted)
}

Try the garma package in your browser

Any scripts or data that you put into this service are public.

garma documentation built on April 4, 2025, 2:13 a.m.