normalization - How do I normalize and denormalize data in R? -
I have data that includes 14 columns of predictors and 1 column of solution variables (y).
I wanted to know that R. Whether there is any inbuilt functions to normalize and denormalize data in
Thanks
{Rmisc} can be used in the package of the standard data package :
Otherwise the following methods can be used:
(variable-mean) / sd The following code can be used for data. Frame:
mydata $ myNormalizedVar & lt ;-( mydata $ myvar-mean (mydata $ myvar)) / SD (myvar)
logs (logs) 10), log2, and square root (SQLT)
normal magnitude generalization or normal volume change. Try:
quantNorm = function (x) {qnorm (rank (x, ties.method = "average") / (length (x) +1))} hist (quantNorm (1 : 10000), 100)
Comments
Post a Comment