Predict coefficients or responses for sparseR object
Usage
# S3 method for class 'sparseR'
predict(object, newdata, lambda, at = c("cvmin", "cv1se"), ...)
# S3 method for class 'sparseR'
coef(object, lambda, at = c("cvmin", "cv1se"), ...)
Arguments
- object
sparseR object
- newdata
new data on which to make predictions
- lambda
a particular value of lambda to predict with
- at
a "smart" guess to use for lambda
- ...
additional arguments passed to predict.ncvreg
Value
predicted outcomes for `newdata` (or coefficients)
at specified (or smart) lambda value