Description Usage Arguments Value Examples
This function tests the white noise assumption for the residuals of the endogenous variables in the specified VAR model. This function implements the portmanteau test known as the Ljung-Box test, and results are comparable with STATA's wntestq
. Of the p-levels resulting from assessing the white noise assumption for the residuals of that variable, the minimum is returned.
1 | assess_portmanteau(varest)
|
varest |
A |
This function returns a p-level.
1 2 3 4 5 | data_matrix <- matrix(nrow = 40, ncol = 3)
data_matrix[, ] <- runif(ncol(data_matrix) * nrow(data_matrix), 1, nrow(data_matrix))
colnames(data_matrix) <- c('rumination', 'happiness', 'activity')
varest <- autovarCore:::run_var(data_matrix, NULL, 1)
autovarCore:::assess_portmanteau(varest)
|
[1] 0.3689733
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.