lasso_weight_single | R Documentation |
Estimation function. Tuning parameter inputs needed.
lasso_weight_single(x, y, lambda, w = NULL, intercept = TRUE, scalex = FALSE)
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 |
A list contains estimated intercept and slope
ahat |
Estimated intercept |
bhat |
Estimated slope |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.