spss_if_transform
Conditionally assign values to a target variable when a logical condition is met in IBM SPSS Statistics.
Instructions
Conditionally assign a value: IF (condition) target = expression. condition: SPSS logical expression, e.g. 'age >= 30 and gender = 1'. 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>",
"condition": "<condition>",
"target_variable": "<target_variable>",
"expression": "<expression>"
},
"name": "spss_if_transform"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| condition | Yes | ||
| file_path | Yes | ||
| expression | Yes | ||
| output_path | No | ||
| target_variable | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |