Help for this page

Select Code to Download


  1. or download this
    #!/usr/bin/perl -w
    use strict;
    ...
    my $R2 = 1 - $ss_resid / $ss_total;
    
    print "R^2 = $R2\n";
    
  2. or download this
    SS residual = 1.9
    SS total    = 46
    R^2 = 0.958695652173913