A note from the future: as guided by the knowledgeable zmughal, I stopped trying to use MATLAB/Octave, and switched to using R, which is certainly the go-to solution for free statistics software. This is the R equivalent of the test in the given PDL::Stats test file:
library(data.table) library(rstatix) tdata <- data.frame( stringsAsFactors = FALSE, dv = c(3.0,2.0,1.0,5.0,2.0,1.0,5.0,3.0,1.0,4.0,1.0,2.0,3.0,5.0,5.0,3. +0,4.0,2.0,1.0,5.0,4.0,3.0,2.0,2.0), id = c(0L,1L,2L,3L,0L,1L,2L,3L,0L,1L,2L,3L,0L,1L,2L,3L,0L,1L,2L,3L,0L +,1L,2L,3L), w = c(0L,0L,0L,0L,0L,0L,0L,0L,1L,1L,1L,1L,1L,1L,1L,1L,2L,2L,2L,2L,2L, +2L,2L,2L), b = c(0L,0L,0L,0L,1L,1L,1L,1L,0L,0L,0L,0L,1L,1L,1L,1L,0L,0L,0L,0L,1L, +1L,1L,1L) ) as.data.table(tdata) tdata <- tdata %>% convert_as_factor(id, w, b) as.data.table(tdata) res.aov <- anova_test( data = tdata, dv = dv, wid = id, within = c(w), between = c(b), detailed = TRUE ) res.aov get_anova_table(res.aov, correction = "none")
And after the code change, PDL::Stats now gives the same results as R! If you want to run the above yourself without "installing" any "software", you can enter it in this extremely handy service: https://rdrr.io/snippets/.

In reply to Re: Appropriate anova function in MATLAB to check PDL::Stats results? by etj
in thread Appropriate anova function in MATLAB to check PDL::Stats results? by etj

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.