The R Project SVN R

Rev

Rev 87163 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 87163 Rev 88563
Line 1... Line 1...
1
% File src/library/stats/man/kernel.Rd
1
% File src/library/stats/man/kernel.Rd
2
% Part of the R package, https://www.R-project.org
2
% Part of the R package, https://www.R-project.org
3
% Copyright 1995-2024 R Core Team
3
% Copyright 1995-2025 R Core Team
4
% Distributed under GPL 2 or later
4
% Distributed under GPL 2 or later
5
 
5
 
6
\name{kernel}
6
\name{kernel}
7
\alias{kernel}
7
\alias{kernel}
8
\alias{bandwidth.kernel}
8
\alias{bandwidth.kernel}
Line 51... Line 51...
51
  with indices in \code{(-m) : m}.  The normalization is such that for
51
  with indices in \code{(-m) : m}.  The normalization is such that for
52
  \code{k <- kernel(*)}, \code{sum(k[ -k$m : k$m ])} is one.
52
  \code{k <- kernel(*)}, \code{sum(k[ -k$m : k$m ])} is one.
53
 
53
 
54
  \code{df.kernel} returns the \sQuote{equivalent degrees of freedom} of
54
  \code{df.kernel} returns the \sQuote{equivalent degrees of freedom} of
55
  a smoothing kernel as defined in
55
  a smoothing kernel as defined in
56
  \bibcite{Brockwell and Davis (1991), page 362},
56
  \bibcitet{|R:Brockwell+Davis:1991|page 362},
57
  and \code{bandwidth.kernel} returns the equivalent bandwidth as
57
  and \code{bandwidth.kernel} returns the equivalent bandwidth as
58
  defined in \bibcite{Bloomfield (1976), p.\sspace{}201},
58
  defined in \bibcitet{|R:Bloomfield:1976|page 201},
59
  with a continuity correction.
59
  with a continuity correction.
60
}
60
}
61
\value{
61
\value{
62
  \code{kernel()} returns an object of class \code{"tskernel"} which is
62
  \code{kernel()} returns an object of class \code{"tskernel"} which is
63
  basically a list with the two components \code{coef} and the kernel
63
  basically a list with the two components \code{coef} and the kernel
Line 66... Line 66...
66
\author{A. Trapletti; modifications by B.D. Ripley}
66
\author{A. Trapletti; modifications by B.D. Ripley}
67
\seealso{
67
\seealso{
68
    \code{\link{kernapply}}
68
    \code{\link{kernapply}}
69
}
69
}
70
\references{
70
\references{
71
  Bloomfield, P. (1976)
-
 
72
  \emph{Fourier Analysis of Time Series: An Introduction.}
-
 
73
  Wiley.
71
  \bibshow{*}
74
 
-
 
75
  Brockwell, P.J. and Davis, R.A. (1991)
-
 
76
  \emph{Time Series: Theory and Methods.}
-
 
77
  Second edition. Springer, pp.\sspace{}350--365.
-
 
78
}
72
}
79
\examples{
73
\examples{
80
require(graphics)
74
require(graphics)
81
 
75
 
82
## Demonstrate a simple trading strategy for the
76
## Demonstrate a simple trading strategy for the