The smoothing spline matrix

Share:

Description

This function returns the smoothing matrix based on cubic smoothing spline method

Usage

1

Arguments

n

the number of (equally spaced) grid

Details

This function is based on Green and Silverman (1994) smoothing spline technique

Value

A smoothing matrix based on smoothing spline method

Author(s)

Lingsong Zhang (lingsong@purdue.edu) Chao Pan (panc@purdue.edu)

References

Green, P. J., & Silverman, B. W. (1994). Nonparametric regression and generalized linear models: a roughness penalty approach (pp. 12-27). London: Chapman & Hall.

See Also

See Also as smooth.spline

Examples

1
2
3
4
5
#set the number of grid
n<-100

#calculate the smoothing matrix
g<-ssmatls(n)