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

Description Usage Arguments Value See Also

View source: R/methods.R

Description

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

Usage

1
2
3
## S3 method for class '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


ensembleEN documentation built on Feb. 11, 2018, 3:10 p.m.