hatm | R Documentation |
Calculate the 'smoothing matrix' of a spline smoothing
hatm(df, year)
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. |
a nxn matrix, the smoothing matrix. Applying a spline smoothing is equivalent to multiplying by this matrix.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.