Author |
Topic  |
|
jim117
Germany
5 Posts |
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!
|
|
greg
USA
1379 Posts |
Posted - 03/06/2002 : 4:45:37 PM
|
Works fine for me...
Maybe you forgot to initialize numpoints?
|
 |
|
jim117
Germany
5 Posts |
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
USA
1379 Posts |
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
Germany
5 Posts |
Posted - 03/12/2002 : 09:14:02 AM
|
Many thanks. Greg. Now it is ok!
jim |
 |
|
|
Topic  |
|
|
|