LOCFIT: R and S-Plus Help | ||||
spence.21(y)
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.
Arguments:
Except for boundary effects, the function will reproduce polynomials up to degree 3.
A vector with the same length as the input vector, representing
the graduated (smoothed) values.
Examples:
data(spencer) yy <- spence.21(spencer$mortality) plot(spencer$age, spencer$mortality) lines(spencer$age, yy) See Also:
References:
Spencer, J. (1904).
On the graduation of rates of sickness and mortality.
Journal of the Institute of Actuaries 38, 334-343.
Key Words:
smooth
| ||||
|
Built: Thu Dec 2 16:56:05 EST 2004
Copyright © 2004, Catherine Loader locfit@herine.net | ||||