The R Project SVN R

Rev

Rev 27497 | Rev 34862 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 27497 Rev 27934
Line 1... Line 1...
1
\name{acf}
1
\name{acf}
2
\alias{acf}
2
\alias{acf}
3
\alias{ccf}
3
\alias{ccf}
4
\alias{pacf}
4
\alias{pacf}
5
\alias{pacf.default}
5
\alias{pacf.default}
-
 
6
\alias{[.acf}
6
\title{Auto- and Cross- Covariance and -Correlation Function Estimation}
7
\title{Auto- and Cross- Covariance and -Correlation Function Estimation}
7
\description{
8
\description{
8
  The function \code{acf} computes (and by default plots) estimates of
9
  The function \code{acf} computes (and by default plots) estimates of
9
  the autocovariance or autocorrelation function.  Function \code{pacf}
10
  the autocovariance or autocorrelation function.  Function \code{pacf}
10
  is the function used for the partial autocorrelations.  Function
11
  is the function used for the partial autocorrelations.  Function
Line 21... Line 22...
21
\method{pacf}{default}(x, lag.max = NULL, plot = TRUE, na.action = na.fail, 
22
\method{pacf}{default}(x, lag.max = NULL, plot = TRUE, na.action = na.fail, 
22
    ...) 
23
    ...) 
23
 
24
 
24
ccf(x, y, lag.max = NULL, type = c("correlation", "covariance"),
25
ccf(x, y, lag.max = NULL, type = c("correlation", "covariance"),
25
    plot = TRUE, na.action = na.fail, \dots)
26
    plot = TRUE, na.action = na.fail, \dots)
-
 
27
 
-
 
28
acf.obj[i, j]
26
}
29
}
27
\arguments{
30
\arguments{
28
  \item{x, y}{a univariate or multivariate (not \code{ccf}) numeric time
31
  \item{x, y}{a univariate or multivariate (not \code{ccf}) numeric time
29
    series object or a numeric vector or matrix.}
32
    series object or a numeric vector or matrix.}
30
  \item{lag.max}{maximum number of lags at which to calculate the acf.
33
  \item{lag.max}{maximum number of lags at which to calculate the acf.
Line 38... Line 41...
38
  \item{na.action}{function to be called to handle missing
41
  \item{na.action}{function to be called to handle missing
39
    values. \code{na.pass} can be used.}
42
    values. \code{na.pass} can be used.}
40
  \item{demean}{logical.  Should the covariances be about the sample
43
  \item{demean}{logical.  Should the covariances be about the sample
41
    means?}
44
    means?}
42
  \item{\dots}{further arguments to be passed to \code{plot.acf}.}
45
  \item{\dots}{further arguments to be passed to \code{plot.acf}.}
-
 
46
 
-
 
47
  \item{acf.obj}{an object of class \code{"acf"} resulting from a call
-
 
48
    to \code{acf}.}
-
 
49
  \item{i}{a set of lags to retain.}
-
 
50
  \item{j}{a set of series to retain.}
43
}
51
}
44
\value{
52
\value{
45
  An object of class \code{"acf"}, which is a list with the following
53
  An object of class \code{"acf"}, which is a list with the following
46
  elements:
54
  elements:
47
 
55
 
Line 75... Line 83...
75
  The generic function \code{plot} has a method for objects of class
83
  The generic function \code{plot} has a method for objects of class
76
  \code{"acf"}.
84
  \code{"acf"}.
77
 
85
 
78
  The lag is returned and plotted in units of time, and not numbers of
86
  The lag is returned and plotted in units of time, and not numbers of
79
  observations.
87
  observations.
-
 
88
 
-
 
89
  There are \code{print} and subsetting methods for objects of class
-
 
90
  \code{"acf"}.
80
}
91
}
81
\author{
92
\author{
82
  Original: Paul Gilbert, Martyn Plummer.
93
  Original: Paul Gilbert, Martyn Plummer.
83
  Extensive modifications and univariate case of \code{pacf} by
94
  Extensive modifications and univariate case of \code{pacf} by
84
  B.D. Ripley.
95
  B.D. Ripley.