Description Usage Arguments Value Examples
Estimates sparse (mulitivariate) additive model
1 |
Y |
response, Nxd matrix |
X |
predictors, Nxp matrix |
df |
the number of spline basis functions to use, defaluts to 10 |
which.lam |
component of the tuning parameter vector for saving coefficients |
returnall |
if TRUE, returns extra information, see below |
... |
optional arguments to |
a list with components
a list with components interior
, a (df-1)xp matrix and boundary
, a 2xd matrix
a (d)x(1+df*p) matrix containing the retained coefficients (intercept in the first column)
a list with components min
and range
of size px1 each describing the predictors
if returnall
is TRUE, a list of length d containing all output from samQL
. Useful for the predict
or fitted
methods
the original X
input
1 2 | someData = generateSPASM(100,3,4)
SPAMfit = spam(someData$y, someData$x)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.