Time series recast as a regression problem (ch. 5 p. 118)
Examples
V <- c(1, 2, 3, 4, 5, 6, 7, 8)
M <- matrix(c(1, 2, 3, 4, 5, 6), nrow = 2)
morie_tsregmat(V, M)
#> $rows
#> [,1] [,2] [,3] [,4] [,5] [,6]
#> [1,] 6 5 4 3 2 1
#> [2,] 7 6 5 4 3 2
#>
#> $y
#> [1] 7 8
#>
#> $lags
#> [1] 1 2 3 4 5 6
#>
#> $horizon
#> [1] 1
#>
#> $nrows
#> [1] 2
#>
#> $ncols
#> [1] 6
#>
#> $ymean
#> [1] 7.5
#>
#> $xmean
#> [1] 4
#>
