Returns statistics that describe a linear trend matching known data points, by fitting a straight line using the least squares method.
Name | Type | Description |
arg1 | ApiRange | The set of y-values from the y = mx + b equation. |
arg2 | ApiRange | An optional set of x-values from the y = mx + b equation. |
arg3 | boolean | A logical value: the constant b is calculated normally if this parameter is set to true or omitted, and b is set equal to 0 if the parameter is false. |
arg4 | boolean | A logical value: return additional regression statistics if this parameter is set to true, and return m-coefficients and the constant b if the parameter is false or omitted. |