delta.xi | R Documentation |
Give the gradient for basis function w.r.t. the knots (subsets) locations for different types of splines.
delta.xi(x, knots, splineArgs)
x |
"matrix". The data matrix, you don't have to provide a constant column. |
knots |
"list". knots$thinplate.s: knots$thinplate.a: |
knotsArgs |
"list". Arguments need to pass to the function, see bellow. knotsArgs$comp: "character", is the components in the design matrix; knotsArgs$thinplate.a.locate: "character", is the location for the additive spline if used, same as d.matrix() function. knotsArgs$thinplate.s.subset: "integer", is the subset label of the knots locations to be updated in the thinplate surface component; knotsArgs$thinplate.a.subset: "integer", is the subset label of the knots locations to be updated in the thinplate additive component; |
The function can be extended by adding new basis. This function gives the gradient for the (vecX) w.r.t. vec(xi')'. You may need the transpose of the results if you want gradient for the (vecX)' w.r.t. vec(xi'). This function is mostly used inside the function of gradient, so always consider the parameters input convenience when you update it.
"list" the gradient parts for different knots components $thinplate.s: "matrix". The gradient w.r.t the input of args$thinplate.s.subset and other relevant values. Note this will only give the dense part of the full gradient matrix w.r.t. the subset. It can also give the full gradient matrix w.r.t. all knots location if args$KnotsSubset is set to same as the full set. $thinplate.a: "matrix". Same as above but for the additive spline part.
First version: Fri Sep 3 17:35:47 CEST 2010. Current: Fri Jan 21 13:28:21 CET 2011.
Feng Li, Department of Statistics, Stockholm University, Sweden.
The notes.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.