Learn R Programming

broom (version 0.3.4)

Arima_tidiers: Tidying methods for ARIMA modeling of time series

Description

These methods tidy the coefficients of ARIMA models of univariate time series.

Usage

## S3 method for class 'Arima':
tidy(x, conf.int = FALSE, conf.level = 0.95, ...)

## S3 method for class 'Arima': glance(x, ...)

Arguments

x
An object of class "Arima"
conf.int
whether to include a confidence interval
conf.level
confidence level of the interval, used only if conf.int=TRUE
...
extra arguments (not used)

Value

  • All tidying methods return a data.frame without rownames, whose structure depends on the method chosen.

    tidy returns one row for each coefficient in the model, with five columns:

  • termThe term in the nonlinear model being estimated and tested
  • estimateThe estimated coefficient
  • std.errorThe standard error from the linear model
  • If conf.int = TRUE, also returns
  • conf.lowlow end of confidence interval
  • conf.highhigh end of confidence interval
  • glance returns one row with the columns
  • sigmathe square root of the estimated residual variance
  • logLikthe data's log-likelihood under the model
  • AICthe Akaike Information Criterion
  • BICthe Bayesian Information Criterion

Details

augment is not currently implemented, as it is not clear whether ARIMA predictions can or should be merged with the original data frame.

See Also

arima

Examples

Run this code
fit <- arima(lh, order = c(1, 0, 0))
tidy(fit)
glance(fit)

Run the code above in your browser using DataLab