Description Usage Arguments Details Value Author(s) References Examples
Calculates Mallows Cp statistic for linear operators such as loess and the STL time series modeling method.
1 2 3 4 5 6 |
object |
objects of class |
y |
the data that the operator is to be applied to. |
sigmasq |
an unbiased estimate of the residual variance. |
The Cp statistic is calculated as
M = RSS/sigmahat^2 - tr(Lambda) + nu
where RSS is the residual sum of squares, sigmahat^2 is the estimated residual variance of an unbiased model, Lambda is the regulator matrix (I - L)'(I-L), and nu is tr(L).
If an unbiased estimate of the residual variance is not known, the function can be called with default sigmasq = 1 and then Cp can be reconstructed using the output of the function.
A data frame consisting of the smoother degrees of freedom df, which is nu in the above equation, the Cp statistic cp, the estimated residual standard deviation sigmahat as sigmahat, the trace of the regulator matrix, tr(Lambda) as delta1, and the residual sum of squares.
Ryan Hafen
W. S. Cleveland and S. J. Devlin. Locally weighted regression: An approach to regression analysis by local fitting. Journal of the American Statistical Association, 83(403):596–610, 1988.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.