fitted.sparseSpline: Extract fitted values from a 'sparseSpline' object

Description Usage Arguments Value Examples

Description

Extract fitted values from a sparseSpline object

Usage

1
2
## S3 method for class 'sparseSpline'
fitted(object, which.lam = 10, ...)

Arguments

object

an object of class sparseSpline, as produced by spam

which.lam

an optional value for the index of the tuning parameter sequence to produce. If NULL, fitted values for all values of the tuning parameter

...

optional additional arguments for method compatability

Value

A matrix of dimension Nxd or an array of dimension N x nlambda x d if which.lam=NULL.

Examples

1
2
3
someData = generateSPASM(100,3,4)
SPAMfit = spam(someData$y, someData$x, returnall=TRUE)
SPAMpreds = fitted(SPAMfit)

dajmcdon/spasm documentation built on May 6, 2019, 1:31 a.m.