Description Usage Arguments Value Examples
The glassonet2 function is designed to learn the graph structure, the corresponding precision matrix and covariance matrix by using the graph lasso method.
1 | glassonet2(Y0, nlambda = nlambda, lambda.min.ratio = 0.001, method)
|
Y0 |
The data matrix for the GGM model. |
nlambda |
The number of interval used in the penalized path in lasso and elastics. It results in the number of lambda values to be used in the penalization. The default value is nlambda assigned in the parent function sparsenetgls(). |
lambda.min.ratio |
It is the default parameter set in function huge() in the package 'huge'. Quoted from huge(), it is the minimal value of lambda, being a fraction of the upper bound (MAX) of the regularization/ thresholding parameter that makes all the estimates equal to 0. The default value is 0.001. |
method |
There are two options for the method parameter which is provided in the huge() function. One is 'glasso' and the other one is 'mb'. |
Return the precision matrix 'OMEGAMATRIX', penalized path parameter lambda 'lambda' and covariance matrix 'COVMATRIX'.
1 2 3 4 5 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.