bugGNU Octave - Bugs: bug #44997, statistics: Use corr() instead of...

 
 

bug #44997: statistics: Use corr() instead of the deprecated corrcoef() function

Submitter:  Rafael Laboissière <rlaboiss>
Submitted:  Sat 02 May 2015 11:48:02 AM UTC
   
 
Category:  Octave Package Severity:  3 - Normal
Priority:  5 - Normal Item Group:  Incorrect Result
Status:  Fixed Assigned to:  None
Originator Name:  Open/Closed:  * Closed
Release:  * dev Operating System:  * Any
Fixed Release:  None Planned Release:  None
* Mandatory Fields

Add a New Comment Rich Markup
   

Mon 02 May 2016 12:47:49 PM UTC, comment #4: 

I think Dominic's point is reasonable. I filed a feature request for corrcoef at https://savannah.gnu.org/bugs/index.php?47824

Nir Krakauer <nir_krakauer>
Mon 02 May 2016 12:12:56 PM UTC, comment #3: 

What about adding something like the following to your Octave setup:


function r = corrcoef (x, y)
    if nargin == 1
        r = corr (x);
    else
        r = corr (x, y);
    endif
endfunction


Rafael Laboissière <rlaboiss>
Mon 02 May 2016 05:44:18 AM UTC, comment #2: 

I would like to use Octave as a Matlab replacement but the fact that you have removed corrcoef makes this difficult as I wish to switch between Matlab at work and Octave at home on the same files.

Dominic <domokane>
Sat 02 May 2015 01:39:00 PM UTC, comment #1: 

Thanks. Patch applied

Nir Krakauer <nir_krakauer>
Sat 02 May 2015 11:48:02 AM UTC, original submission:  

The corrcoef function has been removed from Octave 4.0, which makes the stepwisefit function to fail.  Trivial changeset attached.

Rafael Laboissière <rlaboiss>

 

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

Attach Files:
   
   
Comment:
   

Attached Files

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by domokane (Posted a comment)
  • -email is unavailable- added by nir_krakauer (Posted a comment)
  • -email is unavailable- added by rlaboiss (Submitted the item)
  •  

    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 group members can vote.

     

    Follow 3 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2015-05-02 carandraug StatusNone Fixed
        Open/ClosedOpen Closed
    2015-05-02 rlaboiss Attached File- Added use-corr-instead-of-deprecated-corrcoef.diff, #33877

    Back to the top

    Powered by Savane 3.13-758e.
    Corresponding source code