apaCategories.FromLabels(Labels)
Excel
=apaCategories.FromLabels(Labels)Result
Returns the category indices and the constituent indices, sorted by category.
Syntax
Labels: 1 x nCols vector with category labels (can be string or numerical)
Related functions
apaCategories.FromIndicesReturns the category indices and the constituent indices, sorted by category.apaCategories.FromIndices.CategoriesReturns the category indices of the constituents, sorted by category.apaCategories.FromIndices.ConstituentsReturns the constituent indices, sorted by category.apaCategories.Constituents.ReverseOrderReverses an order of constituent indices.apaCategories.FromLabels.CategoriesReturns the category indices of the constituents, sorted by category.apaCategories.FromLabels.ConstituentsReturns the constituent indices, sorted by category.apaCategories.FromRegimes.MeanDerives categories (regimes) from conditioning variables, depending on whether an observation is above or below the arithmetic mean.apaCategories.FromRegimes.QuantilesDerives categories (regimes) from conditioning variables, each regime being a quantile.apaCategories.FromRegimes.ThresholdDerives categories (regimes) from conditioning variables, depending on whether an observation is below or above a threshold value.apaCategories.FromRegimes.SigmasDerives categories (regimes) from conditioning variables, each regime being defined by the number of standard deviations (sigmas) away from the arithmetic mean of each series.apaCategories.GroupMembership.FromIndicesReturns the group membership matrix from category indices.apaCategories.GroupMembership.FromLabelsReturns the group membership matrix from category labels.apaCategories.GroupMembershipToIndicesConverts a group membership matrix into a category index vector.apaCategories.LabelsToIndicesTurns category labels into category indices.apaCategories.Structure.FromIndicesReturns the category structure, i.e. the number of constituents in each category and the sorted constituents.apaCategories.Structure.FromLabelsReturns the category structure, i.e. the number of constituents in each category and the sorted constituents.
