Description Usage Arguments Details Value Author(s) See Also Examples
The function performs a transformation of the ranking index so that its distribution is suitable as independent variable of the logistic regression model.
1 | 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
1 2 3 | myIndex <- runif (1000)
myTransformedIndex <- indexTransform (myIndex)
plot (myIndex, myTransformedIndex)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.