Convenience function for returning adapted data

adaptedData(x, train = TRUE)

# S3 method for fairadapt
adaptedData(x, train = TRUE)

# S3 method for fairadaptBoot
adaptedData(x, train = TRUE)

Arguments

x

Object of class fairadapt or fairadaptBoot, a result of an adaptation procedure.

train

A logical indicating whether train data should be returned. Defaults to TRUE. If FALSE, test data is returned.

Value

Either a data.frame when called on an fairadapt object, or a list

of data.frames with the adapted data of length n.boot, when called on a fairadaptBoot object.