Home   >   User Resources   >   Online Help   >   apaMatrix.Averages.Categories
 

 

Function index Version 3.0.0

apaMatrix.Averages.Categories(DataMatrix, CategoryLabels)

Excel=apaMatrix.Averages.Categories(DataMatrix, CategoryLabels)

Result

Returns the equally-weighted arithmetic category means of a data matrix. The input data can be jagged.

Syntax

DataMatrix: jagged data matrix, each column containing a time series

CategoryLabels: 1 x c vector of category labels

Remarks

Each column of DataMatrix is assigned to the category given in CategoryLabels. For each row, the equally-weighted arithmetic mean of the numeric values of each category is computed; empty cells, text, logical values and error values are skipped. The output has one row per row of DataMatrix and one column per category. A category without numeric values in a row returns #N/A. CategoryLabels may be a row or a column vector with one label per column of DataMatrix.