powered by
getOrder is a support function for inferring a linear order of categories ascendingly sorted by their means.
getOrder(Values, Group)
This function returns two lists: an order list of categories sortedGroupList
sortedGroupList
and its correspoding list of means sortedmeanList.
sortedmeanList
The list of names of categories ascendingly ordered by their means.
The list of means of categories that are ascendingly ordered.
is a vector of real-number values
is a vector of categories of each real number in Values
# Generate simulation data simData<-SimNonNormalDist(nInv=100,noisePer=0.1) # Call the function to get the sorted lists getOrder(Values=simData$Values,Group=simData$Group)
Run the code above in your browser using DataLab