advanced_regression_analysis
Fit regression models (linear, polynomial, logistic, multivariate) to predict a dependent variable from predictors. Returns coefficients, metrics, and interpretation.
Instructions
Fit a regression model (linear, polynomial, logistic, or multivariate) predicting a named dependent variable from named predictor columns. Returns a markdown report with fitted coefficients, performance metrics, and interpretation. Use this when you have a designated outcome to predict; for association strength without a model use advanced_statistical_analysis, and to score existing predictions use ml_model_evaluation.
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": {
"data": "<data>",
"regressionType": "<regressionType>",
"independentVariables": "<independentVariables>",
"dependentVariable": "<dependentVariable>"
},
"name": "advanced_regression_analysis"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| data | Yes | Array of data points for regression analysis | |
| useTestSplit | No | Whether to use train/test split (default: false) | |
| includeMetrics | No | Whether to include performance metrics (default: true) | |
| regressionType | Yes | Type of regression analysis to perform | |
| polynomialDegree | No | Degree for polynomial regression (2-6, default: 2) | |
| dependentVariable | Yes | Name of dependent variable (response) | |
| includeCoefficients | No | Whether to include coefficient details (default: true) | |
| independentVariables | Yes | Names of independent variables (predictors) | |
| standardizeVariables | No | Whether to standardize variables (default: false) | |
| useConfidenceInterval | No | Whether to include confidence intervals (default: false) |