Last chance! 50% off unlimited learning
Sale ends in
Psychologists frequently report data in terms of transformed scales such as ``IQ" (mean=100, sd=15, ``SAT/GRE" (mean=500, sd=100), ``ACT" (mean=18, sd=6), ``T-scores" (mean=50, sd=10), or ``Stanines" (mean=5, sd=2). The rescale
function converts the data to standard scores and then rescales to the specified mean(s) and standard deviation(s).
rescale(x, mean = 100, sd = 15,df=TRUE)
A matrix or data frame
Desired mean of the rescaled scores- may be a vector
Desired standard deviation of the rescaled scores
if TRUE, returns a data frame, otherwise a matrix
A data.frame (default) or matrix of rescaled scores.
See Also scale
# NOT RUN {
T <- rescale(attitude,50,10) #all put on same scale
describe(T)
T1 <- rescale(attitude,seq(0,300,50),seq(10,70,10)) #different means and sigmas
describe(T1)
# }
Run the code above in your browser using DataLab