Fitting-Functions | R Documentation |
fitfun.SP
argument
to obtain the solution paths for the SPSP algorithm.The user can also customize a function to generate the solution paths, as long as
the customized function take the arguments x, y, family, standardize, intercept,
and return an object of class
glmnet
, ncvreg
, and lars
.
lasso.glmnet(x, y, family, standardize, intercept, ...)
lassoCV.glmnet(x, y, family, standardize, intercept, ...)
adalasso.glmnet(x, y, family, standardize, intercept, ...)
adalassoCV.glmnet(x, y, family, standardize, intercept, ...)
adalassoCVmin.glmnet(x, y, family, standardize, intercept, ...)
ridge.glmnet(x, y, family, standardize, intercept, ...)
lasso.lars(x, y, family, standardize, intercept, ...)
SCAD.ncvreg(x, y, family, standardize, intercept, ...)
MCP.ncvreg(x, y, family, standardize, intercept, ...)
x |
a matrix of the independent variables. The dimensions are (nobs) and (nvars); each row is an observation vector. |
y |
Response variable. Quantitative for |
family |
Response type. Either a character string representing one of the built-in families, or else a glm() family object. |
standardize |
logical argument. Should conduct standardization before the estimation? Default is TRUE. |
intercept |
logical. If x is a data.frame, this argument determines if the resulting model matrix should contain a separate intercept or not. Default is TRUE. |
... |
Additional optional arguments. |
An object of class "glmnet"
is returned to provide solution paths for the SPSP algorithm.
An object of class "glmnet"
is returned to provide solution paths for the SPSP algorithm.
An object of class "glmnet"
is returned to provide solution paths for the SPSP algorithm.
An object of class "glmnet"
using lambda.1se
from the 10-fold
cross-validation to provide solution paths for the SPSP algorithm.
An object of class "glmnet"
using lambda.min
from the 10-fold
cross-validation to provide solution paths for the SPSP algorithm.
An object of class "glmnet"
using ridge regression to provide solution
paths for the SPSP algorithm.
An object of class "lars"
is returned to provide solution paths for the SPSP algorithm.
An object of class "ncvreg"
to provide SCAD penalty solution paths for the SPSP algorithm.
An object of class "ncvreg"
to provide MCP penalty solution paths for the SPSP algorithm.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.