| P_smooth1 | R Documentation |
Penalty matrix of the smoothness inducing prior for spline coefficients:
t(beta) %*% P %*% beta is the sum of squared first differences of beta
(Eilers and Marx, 1996; article eq. 10).
P_smooth1(K)
K |
number of spline coefficients |
K x K matrix P = t(D) %*% D, with D the (K-1) x K first-difference matrix.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.