spss_quick_cluster
Run K-means clustering on selected variables in an SPSS file, set cluster count and iterations, save cluster membership, and output ANOVA table.
Instructions
K-means clustering: QUICK CLUSTER varlist /CRITERIA CLUSTER(k) MXITER(n). save_cluster_variable: saves cluster membership as a new variable. print_anova: adds the ANOVA table. Requires IBM SPSS Statistics.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"file_path": "<file_path>",
"variables": "<variables>"
},
"name": "spss_quick_cluster"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file_path | Yes | ||
| variables | Yes | ||
| n_clusters | No | ||
| print_anova | No | ||
| max_iterations | No | ||
| save_cluster_variable | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |