Get runnable R or Python code
get_codeGet runnable code from the library for a statistical, econometric, causal inference, or machine learning task, in R, Python, or Julia. Returns code blocks with the section they come from, the packages they use, a link, and a citation.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | Number of sections to return code from (default 4). | |
| topic | Yes | The task, e.g. "Callaway and Sant'Anna group-time ATT", "rdrobust bandwidth", "WoE binning scorecard". | |
| source | No | Limit to one work: data_analysis (A Guide on Data Analysis); causalverse (causalverse: The All-in-One Causal Inference Toolkit); credit_score (Credit Scoring: Theory, Methods, and Practice); marketing_research (Marketing Research: A Technical and Academic Treatment); ai_in_action (AI in Action: A Reference for Artificial Intelligence). | |
| language | No | Programming language of the code: r, python, or julia. |