A roughness penalty function based on squared second derivatives evaluated numerically. This is a possible template function for other types of penalties.
vector of length m, must be increasing
a function of one numeric variable
a vector of second derivatives evaluated at the points of xgrid
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.