spss_aggregate
Aggregate data by grouping variables, computing summary statistics such as mean, sum, min, max, SD, count, and more. Outputs a new SPSS dataset with aggregated values.
Instructions
Group-wise summaries: AGGREGATE /BREAK=vars /aggvar=FUNC(source). aggregations: list of {'new_var': name, 'function': MEAN|SUM|MIN|MAX|SD|N|NMISS|FIRST|LAST, 'source': var}. Requires IBM SPSS Statistics.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file_path | Yes | ||
| output_path | No | aggregated.sav | |
| aggregations | Yes | ||
| break_variables | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |