set_measurement
Define a variable's measurement level as auto, continuous, categorical, or ordinal so STATISTICA treats it correctly as a factor or covariate in analyses.
Instructions
Set the measurement level of a variable (auto/continuous/categorical/ordinal). STATISTICA uses it to treat the variable as a factor or a covariate in analysis.
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": {
"path": "<path>",
"variable": "<variable>",
"type": "<type>"
},
"name": "set_measurement"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | Absolute path to the source file. | |
| save | No | Optional destination path to persist the result as .sta. | |
| type | Yes | Measurement level. | |
| sheet | No | ||
| attach | No | Attach to the already-running STATISTICA instance and edit it live (no new process, the app is not closed). | |
| variable | Yes | Variable name or 1-based index. |