znorm {dprep} | R Documentation

## Z-score normalization

### Description

This is a function to apply z-Score normalization to a matrix or dataframe.

### Usage

    znorm(data)

### Arguments

`data` | the dataset to be normalized, including classes

### Details

By using this type of normalization, the mean of th transformed set of data points is reduced to zero by subtracting the mean of each attribute from the values of the attributes and dividing the result by the standard deviation of the attribute. Uses the function scale found in the base library.

Removes classes before normalization, and returns normalized data set complete with classes rejoined.

### Value

`zdata` | the normalized data set

### Author(s)

Caroline Rodriguez and Edgar Acuna

### References

Hann, J., Kamber, M. (2000). Data Mining: Concepts and Techniques. Morgan Kaufman Publishers.

### Examples

    ##---- Z-norm normalization ----
    data(diabetes)
    diab.znorm=znorm(diabetes)
    op=par(mfrow=c(2,1))
    plot(diabetes[,1])
    plot(diab.znorm[,1])
    par(op)

[Package dprep version 1.0 Index]