indexTransform {mdgsa} | R Documentation |
The function performs a transformation of the ranking index so that its distribution is suitable as independent variable of the logistic regression model.
indexTransform(index, method = "normalize")
index |
a ranking index; a numeric vector, matrix or data.frame. |
method |
transformation method. See 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:
transforms the index into quantiles of a normal distribution.
performs an statistical standardization by subtracting the mean and dividing by the standard deviation.
A transformed index. Its class will be that of the the input object.
David Montaner dmontaner@cipf.es
myIndex <- runif (1000) myTransformedIndex <- indexTransform (myIndex) plot (myIndex, myTransformedIndex)