Learn R Programming

WRI (version 0.2.1)

Sample_ACV: Function for calculating sample autocovariance

Description

Calculating sample autocovariance of a specified lag for a centered time series

Usage

Sample_ACV(ts, lag)

Value

Sample autocovariance

Arguments

ts

A numeric vector consisting of sequentially collected data

lag

A positive integer indicates the lag of the autocovariance function