Description Usage Arguments Details Value Examples
View source: R/Lasso-function.R
This function will fit the glmlasso with a sequence value of tuning parameter lambdas and return a plot of BIC vs lambda and the optimal lambda with the smallest BIC.
1 | optim.lambda(Xz, yz, lambda.min, lambda.max, len, plot = FALSE)
|
Xz |
the design matrix for glmlasso |
yz |
a vector of binary outcomes |
lambda.min |
the smallest lambda |
lambda.max |
the largest lambda |
len |
the number of lambdas for fitting |
plot |
logic variable, indicating if the lambda versus BIC plot should be returned |
This function will need glmlasso function.
a plot of BIC vs lambda and the optimal lambda with the smallest BIC
1 2 3 4 5 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.