Make predictions from a cv.ensembleEN object, similar to other predict methods.
# S3 method for cv.ensembleEN
predict(object, newx, index = object$index_opt,
type = c("response", "coefficients"), ...)Fitted cv.ensembleEN object.
Matrix of new values of x at which prediction are to be made. Ignored if type is "coefficients".
Indices indicating values of lambda_S at which to predict. Defaults to the optimal value.
Either "response" for predicted values or "coefficients" for the estimated coefficients.
Additional arguments for compatibility
Either a matrix with predictions or a vector of coefficients