MathPHP\Statistics\EffectSize::etaSquared PHP Метод

etaSquared() публичный статический Метод

Eta-squared describes the ratio of variance explained in the dependent variable by a predictor while controlling for other predictors, making it analogous to the r². https://en.wikipedia.org/wiki/Effect_size#Eta-squared_.28.CE.B72.29 SSt η² = --- SST where: SSt = sum of squares treatment SST = sum of squares total
public static etaSquared ( number $SSt, number $SST ) : number
$SSt number Sum of squares treatment
$SST number Sum of squares total
Результат number
    public static function etaSquared($SSt, $SST)
    {
        return $SSt / $SST;
    }