acf2: Compute the autocorrelation at a specific lag

View source: R/acf.R

acf2R Documentation

Compute the autocorrelation at a specific lag

Description

A wrapper for acf that returns a single autocorrelation for a specified lag.

Usage

acf2(
  x,
  lag.max = 10,
  type = c("correlation", "covariance", "partial"),
  plot = FALSE,
  na.action = na.omit,
  demean = TRUE,
  ...
)

Arguments

x

a numeric vector

lag.max

integer specifying the autocorrelation lag

type

character string

plot

logical

na.action

function to handle missing observations

demean

logical

...

additional arguments passed to acf

See Also

acf


cancer-genomics/trellis documentation built on Aug. 20, 2024, 5:48 p.m.