piecenorms-package {piecenorms}R Documentation

piecenorms: Calculate a Piecewise Normalised Score Using Class Intervals

Description

piecenorms has been built to calculate normalised data piecewise using class intervals. This is useful in communication of highly skewed data.

Details

For highly skewed data, the package classInt provides a series of options for selecting class intervals. The classInts can be used as the breaks for calculating the piecewise normalisation function piecenorm. The function also allows the user to select their own breaks manually.

For any call to piecenorm, the user provides a vector of observations, a vector of breaks and a direction for the normalisation. The data is then cut into classes and normalised within its class.

Number of Bins:

n = \text{length}(\text{brks}) - 1

Normalisation Class Intervals:

\left(\frac{i-1}{n}, \frac{i}{n}\right] \forall i \in \{1:n\}

In cases where there is only one bin defined as c(min(obs), max(obs)), the function piecenorm resolves to standard minmax normalisation.

The piecenorms package also provides a normalisr R6 class that

This is useful when the user would like to analyse how distributions have changed over time.

Note

As with any non-linear transformation, piecewise normalization preserves ordinal invariance within each class but does not preserve global relative magnitudes. However, it does maintain relative magnitudes within each class. On the other hand, more standard techniques like min-max normalization preserves both ordinal invariance and global relative magnitudes.

Definitions of each are as follows:

Author(s)

Maintainer: David Hammond anotherdavidhammond@gmail.com

See Also

Useful links:


[Package piecenorms version 1.1.0 Index]