MeanByCategory(ContinuousVar,CategoricalVar)
Index Tutorial Glossary  

Produces a variable containing means of the numeric expression in the ContinuousVar grouped by values of the categorical variable in the CategoricalVar.

Procedure

Select the MeanByCategory() in the Function box. Then, click on the button. The name of the function will appear in the User Defined Variable box. Select a numerical variable in the Variables box and click on the . The argument variable will appear in the expression. Select a categorical variable in the Variables box and click on the . The by-variable will be added to the expression. Close parentheses. Note: ContinuousVar and CategoricalVar should be separated with a comma.

Example Using MeanByCategory() Function


Related Topics