Description Usage Arguments Value Examples
Evaluate if the dats is consistent with white noise
1 2 3 4 5 6 7 8 9  | evaluate_residuals(
  x,
  p = 0,
  q = 0,
  k_val = c(24, 48),
  alpha = 0.05,
  lag.max = 50,
  model_name = "My Model"
)
 | 
x | 
 the time series  | 
p | 
 the ar order (Default = 0)  | 
q | 
 the ma order (Default = 0)  | 
k_val | 
 a vector of k values for ljung_box test  | 
alpha | 
 Significance level to be used for ljung_box tests  | 
lag.max | 
 Value of lags to plot for the ACF (Default: 50)  | 
model_name | 
 Model name or identifier (Default: "My Model")  | 
the results of the tests, in tidy data format
1 2 3 4 5 6 7 8 9  | library(tswge)
# Generated White Noise 
wn = gen.arma.wge(n = 200, sn = 101)
evaluate_residuals(wn)
# Not White Noise
data(hadley) 
evaluate_residuals(hadley)
 | 
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.