lasso_weight_opt | R Documentation |
Estimation function. Tuning parameter inputs needed.
lasso_weight_opt(
x,
y,
lambda,
w = NULL,
intercept = TRUE,
scalex = FALSE,
solver = "CVXR",
rtol = 1e-08,
verb = 0
)
x |
Predictor matrix (n-by-p matrix) |
y |
Response variable |
lambda |
Shrinkage tuning parameter |
w |
weights |
intercept |
A boolean: include an intercept term or not |
scalex |
A boolean: standardize the design matrix or not |
solver |
indicate solver in use, c("CVXR", "MOSEK") |
A list contains estimated intercept and slope
ahat |
Estimated intercept |
bhat |
Estimated slope |
lasso_weight_opt(x,y)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.