acfinter {actfts} | R Documentation |
ACF and PACF Analysis with Interactive Features
Description
acfinter computes and visualizes the ACF and PACF of a given time series, performs stationarity tests, and optionally generates interactive tables and plots.
Usage
acfinter(
datag,
lag = 72,
ci.method = "white",
ci = 0.95,
interactive = NULL,
delta = "levels",
download = FALSE
)
Arguments
datag |
A numeric vector or a time series object. |
lag |
Maximum number of lags for the ACF and PACF. Default is 72. |
ci.method |
Method for confidence intervals: "white" (default) or "ma". |
ci |
Confidence level for confidence intervals. Default is 0.95. |
interactive |
Character string specifying whether to create an interactive table: "acftable" for the ACF-PACF table, "stattable" for the stationarity tests table. Default is NULL. |
delta |
Transformation of the data: "levels" (default), "diff1", "diff2", or "diff3". |
download |
Logical indicating whether to save the results as files. Default is FALSE. |
Value
A list with two elements: "ACF-PACF Test" and "Stationary Test". The function also creates interactive plots and tables if specified.
Examples
data <- actfts::GDPEEUU
result <- actfts::acfinter(data, lag = 20, ci.method = "white", interactive = "acftable")
print(result)