patchGNU Octave - Patches: patch #9032, New function binotest for...


patch #9032: New function binotest for statistics package

Submitted by:  Andreas Stahel <sha1>
Submitted on:  Fri 17 Jun 2016 03:14:52 PM UTC  
Category: Forge : new functionPriority: 5 - Normal
Status: NonePrivacy: Public
Assigned to: NoneOpen/Closed: Open

Add a New Comment(Rich Markup)

You are not logged in

Please log in, so followups can be emailed to you.


Wed 14 Dec 2016 12:08:24 PM UTC, comment #4:

Works in Octave 4.2.0

Armin Müller <arm_in>
Tue 28 Jun 2016 09:33:21 PM UTC, comment #3:

Thanks, I put in some test cases and added it to the repository

Nir Krakauer <nir_krakauer>
Tue 28 Jun 2016 09:36:58 AM UTC, comment #2:

Hello Nir

Thank you for the excellent suggestions. I tried to implement those. Please examine the enclosed new version.

Enjoy the day


(file #37609)

Andreas Stahel <sha1>
Fri 24 Jun 2016 03:49:35 PM UTC, comment #1:

Hi Andreas,

This is a nice contribution, but I see a few problems:

1) Computed two-tailed p values can be > 1, for example
[h, p, ci] = binotest (7,14,0.5)
with p = 1.2095

2) There is an error when pos == 0 or pos == n, for example
[h, p, ci] = binotest (0,14,0.5)
[h, p, ci] = binotest (14,14,0.5)

3) Also, "There are two methods to define the two tailed p-value" ( ) when p0 != 0.5. So we should either allow the user to choose which method to use, or at least document which is the method available.

Can you check on these?


Nir Krakauer <nir_krakauer>
Fri 17 Jun 2016 03:14:52 PM UTC, original submission:

Dear maintainers

enclosed a new function binotest() for the statistics package.
Syntax and structure is similar to other *test functions
There are two demos enclosed.
Results were compared to results computed by R.

I hope this is useful for others too.

With best regards

Andreas Stahel

Andreas Stahel <sha1>


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

Attach File(s):

Attached Files
file #37609:  binotest.m added by sha1 (5KiB - application/octet-stream)
file #37519:  binotest.m added by sha1 (4KiB - application/octet-stream)


Depends on the following items: None found

Items that depend on this one: None found


Carbon-Copy List
  • -unavailable- added by arm_in (Posted a comment)
  • -unavailable- added by lachlan (Updated the item)
  • -unavailable- added by nir_krakauer (Posted a comment)
  • -unavailable- added by sha1 (Submitted the item)

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.


    Please enter the title of George Orwell's famous dystopian book (it's a date):



    Follow 3 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Thu 07 Jul 2016 01:35:12 AM UTClachlanCategoryNone=>Forge : new function
    Tue 28 Jun 2016 09:36:58 AM UTCsha1Attached File-=>Added binotest.m, #37609
    Fri 17 Jun 2016 03:14:52 PM UTCsha1Attached File-=>Added binotest.m, #37519

    Back to the top

    Powered by Savane 3.1-cleanup1