Learn R Programming

synlik (version 0.1.6)

slAcf: Estimate auto-covariances for multiple datasets.

Description

Function that, give time series data, transforms them into auto-covariances with different lags.

Usage

slAcf(x, max.lag = 10)

Value

a matrix where each column contains the coefficients for a different replicate. The first coefficient corresponds to lag == 0, hence it is the variance, the second is the covariance one step ahead and so on.

Arguments

x

a matrix. Each column contains a replicate series.

max.lag

How many lags to use.

Author

Simon N. Wood, maintainer Matteo Fasiolo <matteo.fasiolo@gmail.com>.

Examples

Run this code
library(synlik)
set.seed(10)
x <- matrix(runif(1000),100,10)
acf <- slAcf(x)

Run the code above in your browser using DataLab