ljung_box: ljung box test for white noise

Description Usage Arguments Value Examples

View source: R/wn_tests.R

Description

ljung box test for white noise

Usage

1
2
3
4
5
6
7
8
ljung_box(
  x,
  p = 0,
  q = 0,
  k_val = c(24, 48),
  model_name = "My Model",
  alpha = 0.05
)

Arguments

x

the time series

p

the ar order (Default = 0)

q

the ma order (Default = 0)

k_val

a vector of k values

model_name

Model name or identifier (Default: "My Model")

alpha

Significance level to be used for ljung_box tests

Value

the results of the tests, in tidy data format

Examples

1
2
3
4
5
6
7
8
9
library(tswge)

# Generated White Noise 
wn = gen.arma.wge(n = 200, sn = 101)
ljung_box(wn)

# Not White Noise
data(hadley) 
ljung_box(hadley)

josephsdavid/tswgewrapped documentation built on July 31, 2020, 9:36 a.m.