octave-bug-tracker
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Octave-bug-tracker] [bug #42671] [PATCH] corr() does not have p-values


From: Philipp Kutin
Subject: [Octave-bug-tracker] [bug #42671] [PATCH] corr() does not have p-values output, returns 1.0 with one observation.
Date: Thu, 03 Jul 2014 13:09:49 +0000
User-agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:30.0) Gecko/20100101 Firefox/30.0

Follow-up Comment #2, bug #42671 (project octave):

Alright... an updated patch is attached that supersedes the first one.
Currently, Octave is incompatible to MATLAB in another way, *not* handled with
this patch. In MATLAB, the input arguments are interpreted strictly as stated
in the doc: columns are variables, rows are observations:

>> corr(1:4)
ans =
   NaN   NaN   NaN   NaN
   NaN   NaN   NaN   NaN
   NaN   NaN   NaN   NaN
   NaN   NaN   NaN   NaN


Octave, in contrast, makes an expection for vector input(s), always handling
each one as one variable with as many observations as it has elements. This
special case is not documented and may cause confusion. Personally, I prefer
stricter semantics whenever possible.

(file #31671)
    _______________________________________________________

Additional Item Attachment:

File name: corr-pval-2.patch              Size:2 KB


    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?42671>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]