Learn R Programming

timesboot (version 1.0)

statistic: Auxiliary function that returns the sample acf values

Description

Auxiliary function that returns the sample acf values

Usage

statistic(ts)

Arguments

ts
A time series object

Value

acf
acf values

Examples

Run this code
function (ts) 
{
    cm = acf(ts, plot = FALSE)
    return(cm$acf)
  }

Run the code above in your browser using DataLab