> ## Documentation Index
> Fetch the complete documentation index at: https://docs.anlytic.com/llms.txt
> Use this file to discover all available pages before exploring further.

# RegressionR2

Coefficient of determination (R-squared) of linear regression

**Category:** `aggregate`

**Syntax:**

```
RegressionR2([y], [x])
```

**Returns:** `Float`

**Context Filtering:** ✗ No

## Parameters

| Name | Type     | Required | Description |
| ---- | -------- | -------- | ----------- |
| `y`  | `column` | ✓ Yes    |             |
| `x`  | `column` | ✓ Yes    |             |

**Allowed Column Types for `y`:** INT, FLOAT, DECIMAL

**Allowed Column Types for `x`:** INT, FLOAT, DECIMAL

## Validation

* Minimum parameters: 2
* Maximum parameters: 2

## Examples

```
RegressionR2([Y], [X])
```

R-squared
