The Origin Forum
File Exchange
Try Origin for Free
The Origin Forum
Home | Profile | Register | Active Topics | Members | Search | FAQ | Send File to Tech support
 All Forums
 Origin Forum
 Origin Forum
 Local Correlation Tracker

Note: You must be registered in order to post a reply.
To register, click here. Registration is FREE!

Screensize:
UserName:
Password:
Anti-Spam Code:
Format Mode:
Format: BoldItalicizedUnderlineStrikethrough Align LeftCenteredAlign Right Horizontal Rule Insert HyperlinkUpload FileInsert Image Insert CodeInsert QuoteInsert List
   
Message:

* HTML is OFF
* Forum Code is ON
Smilies
Smile [:)] Big Smile [:D] Cool [8D] Blush [:I]
Tongue [:P] Evil [):] Wink [;)] Clown [:o)]
Black Eye [B)] Eight Ball [8] Frown [:(] Shy [8)]
Shocked [:0] Angry [:(!] Dead [xx(] Sleepy [|)]
Kisses [:X] Approve [^] Disapprove [V] Question [?]

 
Check here to subscribe to this topic.
   

T O P I C    R E V I E W
thiago.maf Posted - 04/09/2011 : 12:06:25 AM
Origin Ver. and Service Release (Select Help-->About Origin): 8.0 SR4
Operating System: Win7

Hello,
I must develop a program (preferably in Labtalk) that do a search in a data series and returns the numerical value #8203;#8203;of the local Pearson coefficients. For this I need a loop that traverses the data and return me the various Pearson coefficients in a new table - not in the Report.

Is there a function that returns the Pearson coefficient - int value?

Thanks,
Thiago
1   L A T E S T    R E P L I E S    (Newest First)
AmandaLu Posted - 04/11/2011 : 02:42:50 AM
Hi thiago.maf,

To get the Pearson correlation coefficient from the report sheet, you can use X-Function "getresults". The following scripts show you a simple example to use "getresults".


string fname$=system.path.program$ + "Samples\Statistics\correlations.dat";
newbook;
impASC;
corrcoef irng:=1!(col(2),col(3)) pearson:=1 rt:=<new name:="Pearson_Result">;
newsheet name:="Result" label:="Heightcrn|SelfEsteern";
range Heightcrn=Result!col(1);
range SelfEsteern=Result!col(2);
getresults iw:=2! tr:=mytree;
Heightcrn[1]=mytree.peasoncorr.corr1.c1;
SelfEsteern[1]=mytree.peasoncorr.corr1.c2;


For detailed information about "getresults", please refer to the following page:
http://www.originlab.com/www/helponline/Origin/en/Programming/mergedProjects/X-Function/X-Function/Getresults.html

The Origin Forum © 2020 Originlab Corporation Go To Top Of Page
Snitz Forums 2000