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 for Programming
 LabTalk Forum
 getting fitted data

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
jim117 Posted - 03/04/2002 : 1:04:37 PM
when I used the following scripts to perform linear regression on a worksheet to get the fitted new y data for analysis, I fing it not working:
//----//testLR.ogs(saved in origin directory)
[main]
stat.reset();
stat.data$=%1; //dataset to fit
stat.errbardata$=%2;
stat.fitxdata$=%3;stat.fitydata$=%4; //dataset used to store fitted x&y values
stat.makex.fitnpts=%5;
stat.lr();
//----//
then in the script window, I wrote:
run.section(testLR.ogs, main, test_rawdata test_errbar test_fitx test_fity numpoints);
# created worksheet of "test" has five columns:
A[X], rawdata[Y], errbar[Y], fitx[Y], fity[Y]

Could anyone help me to point out where is wrong? Thanks!
4   L A T E S T    R E P L I E S    (Newest First)
jim117 Posted - 03/12/2002 : 09:14:02 AM
Many thanks. Greg. Now it is ok!

jim
greg Posted - 03/08/2002 : 10:43:04 AM
You don't mention what version you are using. I tried 6.0211(6.0 Release), 6.1052(6.1 Release) and 6.1113(6.1 SR4) and they all worked. Maybe there are specific steps involved with the problem. You should contact your technical support with the details to reproduce the problem.


Edited by - greg on 03/08/2002 10:50:41
jim117 Posted - 03/07/2002 : 08:23:09 AM
Thanks. However, it is still not working for my side. I've already initialized the numpoints and after executed the "run.section" script, no fitted dataset and errorset showed in the worksheet of "test".

why? I am very confused.
greg Posted - 03/06/2002 : 4:45:37 PM
Works fine for me...

Maybe you forgot to initialize numpoints?


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