pbsN | R Documentation |
Create N Matrix
pbsN(N, lags, p = 1L)
N |
[matrix()] or [data.frame()] with [numeric()] columns. |
lags |
[list()] of named integer vectors specifying the lags to use for
each time series in |
p |
The integer forecast distance. |
[matrix()] N
# Numeric vector
N <- 1:10
lags <- list(x = c(0, 1, 2))
pbsN(N, lags)
# Numeric matrix
N <- matrix(1:20, ncol = 2)
colnames(N) <- c("x", "y")
lags <- list(x = c(0, 1, 2), y = c(0, 1))
pbsN(N, lags)
# Data frame
N <- data.frame(x = 1:10, y = 11:20)
lags <- list(x = c(0, 1, 2), y = c(0, 1))
pbsN(N, lags)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.