predict.dCVnet: predict.dCVnet

View source: R/dCVnet_main.R

predict.dCVnetR Documentation

predict.dCVnet

Description

predict method for a dCVnet object. predictions come from the "production" model fitted to the full data. As a result they do not reflect cross-validated/out-of-sample performance.

Usage

## S3 method for class 'dCVnet'
predict(object, newx, newy = NULL, ...)

Arguments

object

a a dCVnet object.

newx

matrix of new values for x at which predictions are required. Note: no impact when type is "coefficients", "class" or "nonzero".

newy

required if imputation was used and the outcome (i.e. y) was used in the imputation model.

...

passed to predict.multialpha.repeated.cv.glmnet, then predict.glmnet

Value

predictions of the requested type.


AndrewLawrence/dCVnet documentation built on Sept. 24, 2024, 5:24 a.m.