pbsN: Create N Matrix

pbsNR Documentation

Create N Matrix

Description

Create N Matrix

Usage

pbsN(N, lags, p = 1L)

Arguments

N

[matrix()] or [data.frame()] with [numeric()] columns.

lags

[list()] of named integer vectors specifying the lags to use for each time series in N.

p

The integer forecast distance.

Value

[matrix()] N

Examples


# 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)


luke-a-rogers/pbsedm documentation built on June 3, 2024, 5:20 a.m.