Feature #1228

gmt regress - retrieve R-squared

Added by Robinson 9 months ago. Updated about 1 month ago.

Status:ClosedStart date:2018-03-28
Priority:NormalDue date:
Assignee:Paul% Done:

100%

Category:-
Target version:Candidate for next minor release
Platform:Linux

Description

Quite excited with the new functionality in GMT.

For gmt regress, does the output consist of a r-squared value?

Associated revisions

Revision 19991
Added by Paul 8 months ago

Implementing fix for issue #1228

History

#1 Updated by Paul 8 months ago

  • Status changed from New to Feedback
  • Assignee set to Paul
  • Target version set to Candidate for next minor release

Curiously, we apparently forgot to include r or R-squared among the reported statistics... I will have a look at this.

#2 Updated by Paul 8 months ago

  • Status changed from Feedback to Resolved
  • % Done changed from 0 to 100

I have updated the code to write both R squared and r to the segment header, similar to other statistics. In r19997 but not fully tested yet.

#3 Updated by Paul 8 months ago

  • Status changed from Resolved to Closed
  • Priority changed from High to Normal

Closing due to lack of feedback.

#4 Updated by Robinson about 1 month ago

Paul,
Kindly checking if this has been updated? My GMT details are thus:

GMT - The Generic Mapping Tools, Version 5.4.3 (r19528) [64-bit] [2 cores]

Running under Ubuntu 18.04

#5 Updated by Paul about 1 month ago

It was placed in GMT 6 about six months ago. However, I just fixed a bug today.
To use it you will need to check out GMT6 which now is on GitHub (see our front page).

#6 Updated by Robinson about 1 month ago

Oh thank you! How do I install GMT 6 in Ubuntu 18.04? Can I do sudo apt?

Ok, I got the installation instructions on github, now trying ...

#7 Updated by Joaquim about 1 month ago

Robinson wrote:

Oh thank you! How do I install GMT 6 in Ubuntu 18.04? Can I do sudo apt?

GMT6 is not released yet. You must build it from source. Instructions are in the Github (and GMT site) pages.

#8 Updated by Robinson about 1 month ago

Got it! Just built and installation went smoothly.

However, I still have GMT5.4.3 in the system - is this going affect my calling gmt6?

#9 Updated by Robinson about 1 month ago

When I do: $ gmt --version, I get - 5.4.3

#10 Updated by Paul about 1 month ago

You need to modify your $PATH setting so that wherever you installed GMT6 is found first.

#11 Updated by Robinson about 1 month ago

Nailed it! Thank you. I have been a user since GMT4, and I like it. Keep up the good work.

Also available in: Atom PDF