diffpen | R Documentation |
P-spline difference penalty
diffpen(x, m = 2, sparse = TRUE)
x |
A |
m |
A positive integer indicating order of the difference penalty. |
sparse |
A logical value indicating if the result
should be a sparse version of the
|
A matrix
or sparseMatrix-class
object.
Joshua French
b = bspline(nbasis = 10)
diffpen(b)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.