calculate_relev: Calculate phi control

Description Usage Arguments Value

View source: R/resampling_utils.R

Description

Calculate phi control

Usage

1
calculate_relev(form, dat, rel, cf = 1.5)

Arguments

form

A formula describing the prediction problem.

dat

A data frame containing the original imbalanced data set.

rel

The relevance function which can be automatically ("auto") determined (the default) or may be provided by the user through a matrix with the interpolating points.

cf

Parameter needed if rel = 'auto'. The default is 1.5.

Value

A list containing a vector s.y containing sorted target values, a vector y.relev containing the relevance values of s.y, and phi.control


mrfoliveira/STResampling-JDSA2020 documentation built on June 28, 2021, 7:01 p.m.