getOrder: getOrder function

Description Usage Arguments Value Examples

View source: R/getOrder.R

Description

getOrder is a support function for inferring a linear order of categories ascendingly sorted by their means.

Usage

1
getOrder(Values, Group)

Arguments

Values

is a vector of real-number values

Group

is a vector of categories of each real number in Values

Value

This function returns two lists: an order list of categories sortedGroupList and its correspoding list of means sortedmeanList.

sortedGroupList

The list of names of categories ascendingly ordered by their means.

sortedmeanList

The list of means of categories that are ascendingly ordered.

Examples

1
2
3
4
5
6
# 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)

EDOIF documentation built on March 28, 2021, 9:11 a.m.