Learn R Programming

astsa (version 2.1)

bart: Bartlett Kernel

Description

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

Usage

bart(m)

Value

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

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.

Author

D.S. Stoffer

Details

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

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

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

Run the code above in your browser using DataLab