logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

Math::TamuAnova - Perl extension for the tamuanova library

Author

       Vincent Danjean, <Vincent.Danjean@ens-lyon.org>

Description

       This module allows you to use the tamu-anova library from perl programs.

   EXPORT
       None by default.

   Exportableconstants
         anova_fixed
         anova_mixed
         anova_random

   Exportablefunctions
         anova
         anova_twoway
         printanova
         printanova_twoway

Examples

         $res=Math::TamuAnova::anova( [88.60,73.20,91.40,68.00,75.20,63.00,53.90,
             69.20,50.10,71.50,44.90,59.50,40.20,56.30,
             38.70,31.00,39.60,45.30,25.20,22.70],
           [1,1,1,1,1,2,2,2,2,2,3,3,3,3,3,4,4,4,4,4],
           4);
         Math::TamuAnova::printtable( $res );

         $res=Math::TamuAnova::anova_twoway(
           [6,10,11,13,15,14,22,12,15,19,18,31,18,9,12],
           [1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2],
           [1, 1, 1, 2, 2, 3, 3, 1, 1, 1, 1, 2, 3, 3, 3],
           2,3,
           &Math::TamuAnova::anova_fixed);
         Math::TamuAnova::printtable_twoway( $res );

Name

       Math::TamuAnova - Perl extension for the tamuanova library

See Also

         info tamu_anova

Synopsis

         use Math::TamuAnova;

Use

         $hash=Math::TamuAnova::anova(DATA[], FACTOR[], J);

       DATA is an array of double, FACTOR an array of integer.

       Factors must be within 1..J

       DATA and FACTOR must have the same size.

         $hash2=Math::TamuAnova::anova_twoway(DATA[], FACTORA[], FACTORB[], JA, JB, mode);

       DATA is an array of double, FACTOR(A|B) arrays of integer.

       Factors A must be within 1..JA, and Factors B within 1..JB

       DATA, FACTORA and FACTORB must have the same size.

See Also