Learn R Programming

CTRE (version 0.1.0)

acf.ctre: Autocorrelation function

Description

Calculates and plots the autocorrelation function for the bivariate time series of interarrival times and magnitudes.

Usage

# S3 method for ctre
acf(x, OCTRE = FALSE, ...)

Arguments

x

An object of class ctre

OCTRE

If FALSE (default), each magnitude is matched with its preceding interarrival time. If TRUE, each magnitude is matched with its succeeding interarrival time.

...

Additional arguments passed to acf

Examples

Run this code
# NOT RUN {
  library(magrittr)
  flares %>% ctre() %>% thin(k=150) %>% acf()
# }

Run the code above in your browser using DataLab