nispace.stats.coloc.beta
- nispace.stats.coloc.beta(x, y, intercept=True)[source]
Compute beta coefficients for 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,)
intercept (bool, optional) – Return intercept in leading position of beta array or omit
- Returns:
1D array of beta coefficients (w or w/o intercept)
- Return type:
numpy.ndarray