Linear regression calculation
Note that the non-masked version is used, and that this docstring is replaced by the non-masked docstring + some info on missing data.