scaled.dev function

Scaled deviations for a categorical supplementary variable