Description Usage Arguments Details Value Examples
Given a matrix of slope parameters, retrieve the number of lags.
1 | lag_length(A)
|
A |
A |
At the moment, this function is just an intentionally named wrapper of
ncol(A) / nrow(A)
.
An integer scalar. The lag length p
.
1 2 3 4 5 6 7 8 9 10 11 12 | p <- 3
K <- 4
A <- matrix(0, K, K * p)
lag_length(A) == p
## Not run:
A <- matrix(0, 4, 7)
lag_length(A)
lag_length(A[1, ])
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.