Reproducible SAS/R/Python code / 生成可复现 SAS/R 代码
sas_r_codeReproducible SAS/R/Python code / 生成可复现 SAS/R 代码 | USE WHEN: generate the SAS / R / Python code that reproduces a given analysis | ALIASES: SAS代码, R代码, 复现代码, reproducible code, Python代码, 统计代码 | RETURNS: 推荐统计方法与代码
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": {
"design": "<design>"
},
"name": "sas_r_code"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| design | Yes | 研究设计 | |
| n_groups | No | 组数(整数,默认 2)。决定生成的 SAS/R 代码里两两比较的分组数;多组会额外生成多重比较校正代码。 | |
| outcome_type | No | 结局类型 |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cost | No | ||
| result | Yes | 业务字段,键见 description 的 RETURNS 段 | |
| success | Yes | ||
| data_source | Yes | local_computation|external_corpus|llm_generated|user_data|pending | |
| engine_status | Yes | ok|queued|error|unavailable|not_run |