Description Usage Arguments Value Examples
Extract fitted values from a sparseSpline
object
1 2 |
object |
an object of class |
newdata |
if NULL, returns predictions at original values, otherwise an N1 x p matrix with new X values at which to form predictions |
which.lam |
an optional value for the index of the tuning parameter sequence to produce. If |
... |
optional additional arguments for method compatability |
A matrix of dimension Nxd or an array of dimension N x nlambda x d if which.lam=NULL
.
1 2 3 4 5 6 7 | someData = generateSPASM(100,3,4)
SPAMfit = spam(someData$y, someData$x, returnall=TRUE)
filt = lgf1(someData$y, SPAMfit, someData$Tt,
solve(someData$HHt), someData$GGt, rep(0,3), diag(1,3))
SPAMpreds = predict(SPAMfit, filt$xtt)
matplot(someData$y, ty='l', col=1, lty=1)
matlines(SPAMpreds, col=4, lty=3)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.