classify_qr: Binary Classifications from Quantile Regression

Description Usage Arguments Value

View source: R/classify_qr.R

Description

classify_qr creates binary classifications from a quantile regression fit by comparing predicted values to a prespecified threshold.

Usage

1
classify_qr(newx, coef, y_transform, threshold)

Arguments

newx

a design matrix containing the input values for predictions.

coef

a vector or matrix containing the estimated regression coefficient values. If a matrix (e.g. if you want classifications for model fits produced by a sequence of tuning parameter values), then the each column should correspond to a different fit.

y_transform

a vectorized function to be applied to the predictions.

threshold

the threshold to compare the predictions to.

Value

a vector or matrix of classifications.


Scott-Coggeshall/bigrq documentation built on Dec. 13, 2020, 7:49 a.m.