View source: R/cvband_nonstat.R
shift_obs | R Documentation |
Shift an Observation to Calculate Off-diagonals of a Banded Covariance
shift_obs(X, i, j)
X |
observation, a matrix |
i |
row shift, has to be positive |
j |
column shift, has to be negative (due to symmetry of the covariance, it is enough to allow for negative row shift, forcing the column shift to be positive, or vice versa) |
shifted observation adjunct by zeros to the size of X
( X <- matrix(9:1,3) ) shift_obs(X,1,2) shift_obs(X,1,-2)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.