Learn R Programming

ensembleEN (version 1.1.2)

predict.cv.ensembleEN: Make predictions from a cv.ensembleEN object.

Description

Make predictions from a cv.ensembleEN object, similar to other predict methods.

Usage

# S3 method for cv.ensembleEN
predict(object, newx, index = object$index_opt,
  type = c("response", "coefficients"), ...)

Arguments

object

Fitted cv.ensembleEN object.

newx

Matrix of new values of x at which prediction are to be made. Ignored if type is "coefficients".

index

Indices indicating values of lambda_S at which to predict. Defaults to the optimal value.

type

Either "response" for predicted values or "coefficients" for the estimated coefficients.

...

Additional arguments for compatibility

Value

Either a matrix with predictions or a vector of coefficients

See Also

predict.cv.ensembleEN