R/bias.R
bias.Rd
Obtain prediction bias within each stratum.
bias(residual, treatment, group_idx)
(numeric) residuals.
numeric
(factor) treatment.
factor
(character) stratum index.
character
Numeric matrix of bias in each stratum.