bart {astsa}R Documentation

Bartlett Kernel

Description

Smoothing (triangular) kernel that decreases one unit from the center.

Usage

bart(m)

Arguments

m

non-negative integer specifying the kernel width, which is 2m + 1. If m has length larger than one, the convolution of the kernel is returned.

Details

Uses kernel from the stats package to construct a Bartlett (triangular) kernel of width 2m + 1; see help(kernel) for further details.

Value

Returns an object of class tskernel with the coefficients, the kernel dimension, and attribute "Bartlett".

Author(s)

D.S. Stoffer

References

You can find demonstrations of astsa capabilities at FUN WITH ASTSA.

The most recent version of the package can be found at https://github.com/nickpoison/astsa/.

In addition, the News and ChangeLog files are at https://github.com/nickpoison/astsa/blob/master/NEWS.md.

The webpages for the texts and some help on using R for time series analysis can be found at https://nickpoison.github.io/.

Examples

bart(4)                         # for a list
plot(bart(4), ylim=c(.01,.21))  # for a graph

[Package astsa version 2.1 Index]