zonal.zonal_linear_regression
- zonal.zonal_linear_regression(ind: Array, x: Array, y: Array, verbose: bool = False, **kwargs) RegressionResult
Perform a linear regression in each index.
- Parameters:
ind (array-like) – index labels
y (array-like) – dependent data
x (array-like) – independent data. Must have one dimension more than y, with the first dimension corresponding to the index labels and the last dimension corresponding to the independent variables.
verbose (bool, optional) – Print timing information
kwargs – Keyword arguments for grouped_linear_regression
- Return type:
RegressionResult