Skip to contents

computes inverse probability weighting.

Usage

weights4class(x, type = c("equal", "inverse"))

Arguments

x

A vector of the labels, true class or observed response. Can be numeric, character, or factor

type

Type of weights.

See also

Other performance: accuracy