hatm: Calculate the 'smoothing matrix' of a spline smoothing

View source: R/x_fit.R

hatmR Documentation

Calculate the 'smoothing matrix' of a spline smoothing

Description

Calculate the 'smoothing matrix' of a spline smoothing

Usage

hatm(df, year)

Arguments

df

a numeric, the equivalent degrees of freedom in the spline smoothing.

year

a vector of length n, giving the years of the time-series to smooth.

Value

a nxn matrix, the smoothing matrix. Applying a spline smoothing is equivalent to multiplying by this matrix.


saidqasmi/KCC documentation built on July 8, 2022, 6:02 a.m.