Math::TamuAnova(3pm)

πŸ’– Math::TamuAnova β€” the tamuanova library, but make it Perl πŸ’–

okay bestie, so <rainbow>Math::TamuAnova</rainbow> is a Perl extension that lets you drive the tamu-anova library straight from your Perl programs. that's it. that's the vibe. stats girlies rise 🫢


✨ SYNOPSIS ✨

use Math::TamuAnova;

literally one line. iconic. no cap.


πŸ¦‹ DESCRIPTION πŸ¦‹

This module allows you to use the tamu-anova library from Perl programs. yes, from your Perl programs. she's versatile like that πŸ’…

πŸŽ€ EXPORT πŸŽ€

None by default. nm. nothing comes free, you gotta ask for it (or just fully qualify everything, which is what the examples do, and honestly? slay).

🌸 Exportable constants 🌸

  • anova_fixed
  • anova_mixed
  • anova_random

three lil constants, all yours if you want them πŸ’–

🧚 Exportable functions 🧚

  • anova
  • anova_twoway
  • printanova
  • printanova_twoway

the whole squad, right there πŸ‘‘


⭐ USE ⭐

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

so like. DATA is an array of double. FACTOR is an array of integer. simple as.

Factors must be within 1..J β€” like, no straying out of bounds, babe, the vibe check is strict πŸ’€

DATA and FACTOR must have the same size. periodt. no mismatched lengths, they have to match up, it's giving commitment πŸ’ž

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

the two-way version, obviously. again, DATA is an array of double, and FACTOR(A|B) are 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. all three. together. hand in hand 🫢


🌈 EXAMPLES 🌈

first up, the one-way moment:

$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 );

and then the two-way serve:

$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 );

look at her go. ate and left no crumbs πŸ’…βœ¨


πŸ‘€ SEE ALSO πŸ‘€

info tamu_anova

go read about the actual library, iykyk πŸ“–


πŸ’œ AUTHOR πŸ’œ

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

the legend themselves. we stan 🫢


Copyright (C) 2006 by Vincent Danjean

This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself, either Perl version 5.8.8 or, at your option, any later version of Perl 5 you may have available.

so basically: free software, Perl's terms, 5.8.8 or any later version you've got. go wild but respectfully πŸ’–

and that's the whole page bestie!! πŸŽ€ this doc came from perl v5.42.3 and it's dated 2026-08-19 β€” shoutout to the User Contributed Perl Documentation crew for hosting her. take care of her, she's iconic, bye mwah πŸ˜­πŸ’–πŸŒΈ

πŸ“¦ where this page comes from