Description Usage Arguments Value References See Also Examples

Spencer's 21 point rule is a weighted moving average operation for a sequence of observations equally spaced in time. The average at time t depends on the observations at times t-11,...,t+11.

Except for boundary effects, the function will reproduce polynomials up to degree 3.

1 | ```
spence.21(y)
``` |

`y` |
Data vector of observations at equally spaced points. |

A vector with the same length as the input vector, representing the graduated (smoothed) values.

Spencer, J. (1904). On the graduation of rates of sickness and mortality. Journal of the Institute of Actuaries 38, 334-343.

1 2 3 4 |

```
locfit 1.5-9.1 2013-03-22
```

Embedding an R snippet on your website

Add the following code to your website.

For more information on customizing the embed code, read Embedding Snippets.