Skip to content

Commit

Permalink
Improved docs
Browse files Browse the repository at this point in the history
  • Loading branch information
robjhyndman committed Jul 23, 2024
1 parent cfde945 commit 2345762
Show file tree
Hide file tree
Showing 5 changed files with 33 additions and 10 deletions.
2 changes: 1 addition & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
Expand Up @@ -65,5 +65,5 @@ License: GPL-3
URL: https://pkg.robjhyndman.com/forecast/, https://github.com/robjhyndman/forecast
VignetteBuilder: knitr
Encoding: UTF-8
RoxygenNote: 7.3.1
RoxygenNote: 7.3.2
Config/testthat/edition: 3
16 changes: 12 additions & 4 deletions R/arima.R
Original file line number Diff line number Diff line change
Expand Up @@ -608,7 +608,13 @@ fitted.forecast_ARIMA <- fitted.Arima
#' is also possible to take an ARIMA model from a previous call to \code{Arima}
#' and re-apply it to the data \code{y}.
#'
#' See the \code{\link[stats]{arima}} function in the stats package.
#' The fitted model is a regression with ARIMA(p,d,q) errors
#' \deqn{y_t = c + \beta' x_t + z_t}
#' where \eqn{x_t} is a vector of regressors at time \eqn{t} and \eqn{z_t} is an
#' ARMA(p,d,q) error process. If there are no regressors, and \eqn{d=0}, then c
#' is an estimate of the mean of \eqn{y_t}. For more information, see Hyndman &
#' Athanasopoulos (2018). For details of the estimation algorithm, see the
#' \code{\link[stats]{arima}} function in the stats package.
#'
#' @aliases print.ARIMA summary.Arima as.character.Arima
#'
Expand All @@ -621,8 +627,8 @@ fitted.forecast_ARIMA <- fitted.Arima
#' components order and period, but a specification of just a numeric vector of
#' length 3 will be turned into a suitable list with the specification as the
#' order.
#' @param xreg Optionally, a numerical vector or matrix of external regressors, which
#' must have the same number of rows as y. It should not be a data frame.
#' @param xreg Optionally, a numerical vector or matrix of external regressors,
#' which must have the same number of rows as y. It should not be a data frame.
#' @param include.mean Should the ARIMA model include a mean term? The default
#' is \code{TRUE} for undifferenced series, \code{FALSE} for differenced ones
#' (where a mean would not affect the fit nor predictions).
Expand Down Expand Up @@ -650,7 +656,9 @@ fitted.forecast_ARIMA <- fitted.Arima
#' \item{sigma2}{The bias adjusted MLE of the innovations variance.}
#'
#' @export
#'
#' @references Hyndman, R.J. and Athanasopoulos, G. (2018)
#' "Forecasting: principles and practice", 2nd ed., OTexts, Melbourne, Australia.
#' \url{https://OTexts.com/fpp2/}.
#' @author Rob J Hyndman
#' @seealso \code{\link{auto.arima}}, \code{\link{forecast.Arima}}.
#' @keywords ts
Expand Down
4 changes: 3 additions & 1 deletion R/errors.R
Original file line number Diff line number Diff line change
Expand Up @@ -223,7 +223,9 @@ trainingaccuracy <- function(f, test, d, D) {
#' @author Rob J Hyndman
#' @references Hyndman, R.J. and Koehler, A.B. (2006) "Another look at measures
#' of forecast accuracy". \emph{International Journal of Forecasting},
#' \bold{22}(4), 679-688. Hyndman, R.J. and Athanasopoulos, G. (2018)
#' \bold{22}(4), 679-688.
#'
#' Hyndman, R.J. and Athanasopoulos, G. (2018)
#' "Forecasting: principles and practice", 2nd ed., OTexts, Melbourne, Australia.
#' Section 3.4 "Evaluating forecast accuracy".
#' \url{https://otexts.com/fpp2/accuracy.html}.
Expand Down
17 changes: 14 additions & 3 deletions man/Arima.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 3 additions & 1 deletion man/accuracy.default.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 2345762

Please sign in to comment.