convert_statistics
Convert R, MATLAB, SPSS, Stata, and SAS statistical files into JSON or CSV for cross-platform analysis.
Instructions
Convert statistical data formats: R data (.rdata, .rds)→JSON, MATLAB (.mat)→JSON, SPSS (.sav)→JSON, Stata (.dta)→JSON. Note: Binary formats require Python libraries (pyreadstat, scipy).
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": {
"inputPath": "<inputPath>",
"outputPath": "<outputPath>"
},
"name": "convert_statistics"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| inputPath | Yes | Absolute path to input statistical file | |
| outputPath | Yes | Absolute path for output file (include extension) | |
| inputFormat | No | Input format (auto-detected if not provided) | |
| outputFormat | No | Output format |