indexTransform {mdgsa} | R Documentation

## Transform ranking index distribution.

### Description

The function performs a transformation of the ranking index so that its distribution is suitable as independent variable of the logistic regression model.

### Usage

    indexTransform(index, method = "normalize")

### Arguments

`index` | a ranking index; a numeric vector, matrix or data.frame.
`method` | transformation method. See details.

### Details

Works for vector, matrices and data.frames. In the case of matrices the function transforms each column separately from the other ones.

Two methods are currently implemented:

- normalize:

  transforms the index into quantiles of a normal distribution.

- standardize:

  performs an statistical standardization by subtracting the mean and dividing by the standard deviation.

### Value

A transformed index. Its class will be that of the the input object.

### Author(s)

David Montaner dmontaner@cipf.es

### See Also

`transferIndex`, `uvGsa`, `mdPat`

### Examples

    myIndex <- runif (1000)
    myTransformedIndex <- indexTransform (myIndex)
    plot (myIndex, myTransformedIndex)

[Package mdgsa version 1.20.0 Index]