ar1_cross_cov: Cross-covariance matrix of a stationary Gaussian AR(1)...

Description Usage Arguments Value Examples

Description

Creates the cross-covariance matrix of an AR(1) process with parameters rho and sigma, observed at (positive) integer times times1 and times2, which may be irregularly spaced. The process is assumed to be in stationarity and to have Gaussian errors.

Usage

1
ar1_cross_cov(times1, times2, rho, sigma)

Arguments

times1

An vector of positive integers, preferably ordered.

times2

An vector of positive integers, preferably ordered.

rho

A real number strictly less than 1 in absolute value.

sigma

A positive real number.

Value

A matrix with length(times2) rows and length(times1) columns.

Examples

1
2
3
4
5
times1 <- c(1, 3, 6)
times2 <- c(2, 4, 8:9)
rho <- 0.5
sigma <- 1
ar1_cross_cov(times1, times2, rho, sigma)

BenjaK/irregulAR1 documentation built on May 30, 2019, 3:51 p.m.