patchGNU Octave - Patches: patch #10127, [octave forge] (statistics) Add...

 
 

patch #10127: [octave forge] (statistics) Add missing functions anona1 and kruskalwallis

Submitter:  Andreas Bertsatos <pr0m1th3as>
Submitted:  Tue 26 Oct 2021 09:47:08 AM UTC
   
 
Category:  Forge : new function Priority:  5 - Normal
Status:  Done Privacy:  Public
Assigned to:  None Open/Closed:  Closed
* Mandatory Fields

Add a New Comment Rich Markup
   

Thu 04 Nov 2021 07:04:22 PM UTC, comment #3: 

Thanks again. I added your functions to the repo
https://sourceforge.net/p/octave/statistics/ci/default/tree/

I will try to look at the backlog of contributions to the package over the next few weeks and make a new release.

Nir Krakauer <nir_krakauer>
Tue 02 Nov 2021 03:48:16 PM UTC, comment #2: 

sorry for the delayed response, I have added some testing on both functions with a dataset form nist webpage. anova1 is tested against the results available there, whereas for the kruskalwallis I crossreferenced with SPSS and R. Source of dataset is referenced in both functions. Since tests are appended in the files, I don't think corresponding diff files are necessary.

(file #52185, file #52186)

Andreas Bertsatos <pr0m1th3as>
Thu 28 Oct 2021 05:31:14 PM UTC, comment #1: 

Thank you for the contributions, Andreas. Can you also add some unit tests of the new functions, so that it will be possible to easily check that they work in different environments?

Nir Krakauer <nir_krakauer>
Tue 26 Oct 2021 09:47:08 AM UTC, original submission:  

Adding two functions for one-way ANOVA and its non-parametric alternative. These functions behave almost identical to their MATLAB counterparts except for:

1) the standard ANOVA table is printed on screen rather than in a figure as in the MATLAB implementation.
2) when called with no output arguments, the results are also printed on screen in the standard ANOVA table.

For both tests, the resulting values have been validated against SPSS results, since I have no access to MATLAB. I can't provide the data for these tests because they are part of an ongoing research. However, three demos have been included in each function along with a rather thorough help file.

The behavior of MATALB implementations have been identified from their online manual. If anyone has access to MATLAB, please help verify the results. I am happy to undertake any corrections and/or further improvements necessary.

Both functions rely on the updated boxplot function (previous patch #9930) in order to work properly. Both functions provide the appropriate stats structure used by MATLAB's multcompare, which is still missing from our statistics package. I could write an equivalent next month, if it is regarded an important missing functionality.

Please, report back when the next statistics package release is expected, since a lot of my work relies on recently added and/or updated functions and it makes it cumbersome for research colleagues to reproduce my results with the latest available release. I am willing to help in any way possible towards a newer release for the statistics package. Please inform.

Thanks,

Andreas Bertsatos


Andreas Bertsatos <pr0m1th3as>

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:
   
   
Comment:
   

Attached Files
file #52185:  anova1.m added by pr0m1th3as (9KiB - text/x-objcsrc - added tests)
file #52186:  kruskalwallis.m added by pr0m1th3as (10KiB - text/x-objcsrc - added tests)
file #52154:  anova1.m added by pr0m1th3as (8KiB - text/x-objcsrc)
file #52155:  kruskalwallis.m added by pr0m1th3as (9KiB - text/x-objcsrc)

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by nrjank (Updated the item)
  • -email is unavailable- added by nir_krakauer (Posted a comment)
  • -email is unavailable- added by pr0m1th3as (Submitted the item)
  • -email is unavailable- added by pr0m1th3as
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

    Only logged-in users can vote.

     

    Follow 7 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2021-11-23 nrjank StatusNone Done
        Open/ClosedOpen Closed
    2021-11-02 pr0m1th3as Attached File- Added anova1.m, #52185
        Attached File- Added kruskalwallis.m, #52186
    2021-10-26 pr0m1th3as Attached File- Added anova1.m, #52154
        Attached File- Added kruskalwallis.m, #52155
        Carbon-Copy- Added pr0m1th3as

    Back to the top

    Powered by Savane 3.13-4448.
    Corresponding source code