Skip to contents

This function performs Pareto scaling on a numeric matrix or data frame. Pareto scaling scales each variable (column) by dividing it by the square root of its standard deviation.

Usage

pareto(x, drop.na = FALSE)

Arguments

x

A numeric matrix or data frame to be scaled.

drop.na

A logical value indicating whether to remove missing values (NA) from the calculations. If TRUE (the default), missing values will be removed. If FALSE, missing values will be included.

Value

A numeric matrix or data frame with the same dimensions as x, but with each variable scaled by the square root of its standard deviation.

Author

Christian L. Goueguel