Description Usage Arguments Details
Choose solutions from a solution path based on number of edges, value of regularization parameter lambda, or index.
1 | select(x, edges, lambda, index)
|
x |
a |
edges |
number of edges to search for. |
lambda |
value of regularization parameter to search for. |
index |
integer index to select. |
For edges
(resp. lambda
), the solution with the closest number
of edges (resp. regularization parameter) is returned. If there is no match
within a tolerance of 0.1 for lambda
, nothing is returned. Fuzzy matching
is not used for when selecting by index
.
If there is more than one match (for example, by number of edges), then
the first such estimate is returned. Note that select(x, index = j)
is equivalent to (but slightly slower than) x[[j]]
.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.