diffpen {hero} | R Documentation |
P-spline difference penalty
Description
P-spline difference penalty
Usage
diffpen(x, m = 2, sparse = TRUE)
Arguments
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
|
Value
A matrix
or sparseMatrix-class
object.
Author(s)
Joshua French
Examples
b = bspline(nbasis = 10)
diffpen(b)
[Package hero version 0.6 Index]