spss_compute
Create or overwrite an SPSS variable using numeric expressions, enabling computed metrics such as BMI from existing data.
Instructions
Create a new variable or overwrite an existing one with a computed expression. expression: any SPSS numeric expression, e.g. 'weight/(height**2)' or 'MEAN(q1,q2,q3)'. 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>",
"target_variable": "<target_variable>",
"expression": "<expression>"
},
"name": "spss_compute"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file_path | Yes | ||
| expression | Yes | ||
| output_path | No | ||
| target_variable | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |