Skip to contents

Constructor function for the class plus A constructor for the plus class

Usage

new_plus(
  fit_plus = list(),
  pred_y = matrix(),
  cutoff = numeric(),
  predicted_coefficients = Matrix::Matrix(),
  call = character()
)

Arguments

fit_plus

a cv.glmnet object. Is the output of the plus algorithm performance

pred_y

A vector of predictied probabilities of the plus model

cutoff

The threshold cut of the plus model

predicted_coefficients

the coefficientes values predicted for the plus model

call

Call this function

Value

an object of class plus

Examples

new_plus(fit_plus = fit_plus_example,
pred_y = predicted_y_example,
cutoff = cutoff_example,
predicted_coefficients = predicted_coefficients_example,
call = match.call()
)
#> Error in match.call(): invalid 'definition' argument