regr_r2
Calculates the linear regression R-squared coefficient for goodness of fit of the linear regression where x
and y
are not unbound.
Parameter | Type | Description |
---|---|---|
| decimal, double | the independent variable |
| decimal, double | the dependent variable |
Returns:
Example
Query:
PREFIX : <https://ddw-doccorp.linked.data.world/d/sparql-aggregation-sample-queries/> PREFIX agg: <http://data.world/function/aggregate#> SELECT (agg:regr_r2(?foo, ?bar) AS ?regr_r2) { [ :col-aggregations-foo ?foo ; :col-aggregations-bar ?bar ] }
Result:
regr_r2 |
---|
0.5307 |