shift_obs: Shift an Observation to Calculate Off-diagonals of a Banded...

View source: R/cvband_nonstat.R

shift_obsR Documentation

Shift an Observation to Calculate Off-diagonals of a Banded Covariance

Description

Shift an Observation to Calculate Off-diagonals of a Banded Covariance

Usage

shift_obs(X, i, j)

Arguments

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)

Value

shifted observation adjunct by zeros to the size of X

Examples

( X <- matrix(9:1,3) )
shift_obs(X,1,2)
shift_obs(X,1,-2)

TMasak/surfcov documentation built on April 25, 2022, 12:15 a.m.