Description Usage Arguments Value Author(s) Examples
View source: R/rankTransform.R
Transforms a response by rank into critical values of the standard normal distribution. In the case of ties this function will use the mean of the transformed response.
1 | rankTransform(Data, VecName)
|
Data |
A data set. |
VecName |
The name (as a string) of the response to be transformed. |
Data |
The original data set with a new variable called 'TransformedResponse' which is the rank transform of the response. |
Joe Swintek
1 2 3 4 5 6 7 8 9 | #Data
data(lengthWeightData)
#Subset the data
SubData<-lengthWeightData[lengthWeightData$Age=='16 week', ]
SubData<-SubData[SubData$Generation=='F1', ]
SubData<-SubData[SubData$SEX=='M', ]
#Run
RankData<-rankTransform(Data=SubData, VecName='WEIGHT')
head(RankData)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.