computeQuants: Compute Quantiles generic for the Quantile Learning step.

View source: R/quants.R

computeQuantsR Documentation

Compute Quantiles generic for the Quantile Learning step.

Description

Compute Quantiles generic for the Quantile Learning step.

Usage

computeQuants(x, data, newdata, ind, ...)

Arguments

x

Object with an associated computeQuants() method, to be used for inferring quantiles.

data

data.frame containing samples used in the quantile regression.

newdata

data.frame containing counterfactual values for which the quantiles need to be inferred.

ind

A logical vector of length nrow(data), indicating which samples have the baseline value of the protected attribute.

...

Additional arguments to be passed down to respective method functions.

Value

A vector of counterfactual values corresponding to newdata.


fairadapt documentation built on Oct. 10, 2023, 1:07 a.m.