glm_correct_pred: glm_correct_pred

View source: R/glm_correct_pred.R

glm_correct_predR Documentation

glm_correct_pred

Description

Correct the predictions of a glm after an over-sampling step.

Usage

glm_correct_pred(predictions, original_avg, new_avg)

Arguments

predictions

numerical vector, glm predictions

original_avg

double, the original average prediction

new_avg

double, the new average prediction

Details

Formula is based on: www.data-mining-blog.com/tips-and-tutorials/overrepresentation-oversampling/

Value

numerical vector, new corrected glm predictions


bronnimannj/jbutilities documentation built on July 2, 2023, 4:09 p.m.