Description Usage Arguments Examples
View source: R/ExclusiveLasso.R
Make predictions using the exclusive lasso. Similar to predict.glmnet
.
coef(...)
is a wrapper around predict(..., type="coefficients")
.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 | ## S3 method for class 'ExclusiveLassoFit'
coef(object, lambda = s, s = NULL, exact = FALSE, group_threshold = FALSE, ...)
## S3 method for class 'ExclusiveLassoFit'
predict(
object,
newx,
lambda = s,
s = NULL,
type = c("link", "response", "coefficients"),
group_threshold = FALSE,
exact = FALSE,
offset,
...
)
|
object |
An |
lambda |
The value of the regularization paramter (lambda) at which to return the fitted coefficients or predicted values. If not supplied, results for the entire regularization path are returned. Can be a vector. |
s |
An alternate argument that may be used to supply |
exact |
Should the exclusive lasso be re-run for provided values of |
group_threshold |
If |
... |
Additional arguments passed to |
newx |
New data X on which to make predictions. If not supplied, predictions are made on trainng data. |
type |
The type of "prediction" to return. If |
offset |
An offset term used in predictions. If not supplied, all offets are
taken to be zero. If the original fit was made with an offset, |
1 2 3 4 5 6 7 8 9 10 11 12 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.