Learn R Programming

assist (version 3.1.9)

hat.ssr: Extract the Hat Matrix from a ssr Object

Description

Calculate the hat matrix for a ssr object.

Usage

hat.ssr(ssr.obj)

Value

returned is the hat (influence, smoother) matrix.

Arguments

ssr.obj

a fitted ssr object.

Author

Chunlei Ke chunlei_ke@yahoo.com and Yuedong Wang yuedong@pstat.ucsb.edu

Details

The hat matrix may be used for diagnosis. Note that the full name hat.ssr shoud be used since the function hat already exist.

References

Eubank, R. L. (1984). The Hat Matrix for Smoothing Splines. Statistics and Probability Letters, 2:9-14.

Eubank, R. L. (1985). Diagnostics for Smoothing Splines. Journal of the Royal Statistical Society B. 47: 332-341.

Wahba, G. (1990). Spline Models for Observational Data. SIAM, Vol. 59.

See Also

ssr

Examples

Run this code
if (FALSE) library(MASS)
if (FALSE) fit1<- ssr(accel~times, data=mcycle, scale=T, rk=cubic(times))
if (FALSE) h <- hat.ssr(fit1)

Run the code above in your browser using DataLab