Description Usage Arguments Details Value References See Also Examples
Least-angle, lasso and stepwise methods for linear regression.
1 2 |
x |
A matrix or |
y |
A numeric response vector or 1-column |
type |
The type of regression to be performed. The usual choices are
but see the details section below for other possibilities.
Default is |
removeColumns |
A logical scalar indicating whether columns with small variance should be removed from consideration as predictors; default ‘TRUE’. |
eps |
Numerical tolerance used for assessment of sign, equality, rank
determination, column removal, etc. The default is the
square root of |
blockSize |
If |
maxStages |
The maximum number of stages allowed in the algorithm.
This argument applies only to the |
An intercept is always included in the regression.
This function calls other routines to do the core calculations, one of
biglars.fit.lasso
,
biglars.fit.lar
, or
biglars.fit.stepwise
.
These functions are associated with Fraley et~al. (2007) and will not
be undergoing further development except for things like bug fixes.
For ongoing development of least-angle regression, see the glars
library.
A list with the following elements:
coef |
An array of regression coefficients for each stage. |
moves |
Any array describing variables added or removed at each stage. |
RSS |
Residual sum of squares. |
B. Efron, T. Hastie, I. Johnstone and R. Tibshirani (2004), "Least Angle Regression" (with discussion), Annals of Statistics 32, 407-499.
C. Fraley and T. Hesterberg (2007), " Least-Angle Regression for Large Datasets", Technical Report, Insightful Corporation.
1 2 3 4 5 6 7 8 9 | data(diabetes)
larFit <- biglars.fit(diabetes$x, diabetes$y, type = "lar")
larFitBlocked <- biglars.fit(diabetes$x, diabetes$y, type = "lar",
blockSize = 50)
lassoFit <- biglars.fit(diabetes$x, diabetes$y, type = "lasso")
lassoFitBlocked <- biglars.fit(diabetes$x, diabetes$y, type = "lasso",
blockSize = 34)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.