nispace.stats.coloc.mlr
- nispace.stats.coloc.mlr(x, y, adj_r2=True, intercept=True)[source]
Compute Regression of predictor(s) x on target y. Requires numpy arrays with columns as predictors/target.
- Parameters:
x (numpy.ndarray) – shape (n_values, n_predictors)
y (numpy.ndarray) – shape (n_values, 1) or (n_values,)
adj_r2 (bool, optional) – Calculate adjusted R2. Defaults to True.
intercept (bool, optional) – Return intercept in leading position of beta array or omit
- Returns:
(adjusted) R2 array: parameters, starting with or w/o intercept
- Return type:
float