PHP code example of mnshankar / two-factorial-anova

1. Go to this page and download the library: Download mnshankar/two-factorial-anova library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

mnshankar / two-factorial-anova example snippets


 $obj = new ANOVA(
            array(1,2,3,4,5,6,7,8,9,10,11,12),3
        );

$obj->computeR();   //array of row sums
$obj->computeC();   //array of column sums
$obj->MSC();        //Mean square of columns
$obj->MSR();        //Mean square of rows
$obj->MSRC();       //Mean square interaction rc
$obj->MSE();        //Mean square residuals
$obj->Fc();         //F stat Column
$obj->Fr();         //F stat row
$obj->Frc();        //F stat interaction rc
$obj->Pc();         //P value Column
$obj->Pr();         //P value row
$obj->Prc();        //P value interaction rc