public sumOfSquaresRegression ( ) : number | ||
Résultat | number |
public function sumOfSquaresRegression()
{
if ($this->fit_constant == 1) {
return RandomVariable::sumOfSquaresDeviations($this->Yhat());
}
return array_sum(Single::square($this->reg_Yhat));
}