predict.bolasso: Predict from a 'bolasso'

Description Usage Arguments Value

View source: R/predict-interface.R

Description

Predict from a bolasso

Usage

1
2
## S3 method for class 'bolasso'
predict(object, new_data, type = "prob", ...)

Arguments

object

A bolasso object.

new_data

A data frame or matrix of new predictors.

type

A single character. The type of predictions to generate. Valid options are:

  • "numeric" for numeric predictions (output of X*beta).

  • "link" same as numeric.

  • "prob" for probabilities (apply logit transformation to link).

  • "class" for classes (based on threshold class is set to 0 or 1).

...

Used to pass threshold when using class predictions.

Value

A tibble of predictions. The number of rows in the tibble is guaranteed to be the same as the number of rows in new_data.


david26694/bolasso documentation built on Nov. 4, 2019, 9:43 a.m.