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
Username:
Password:
Save Password
Forgot your Password? | Admin Options

 All Forums
 Origin Forum for Programming
 LabTalk Forum
 descriptive statistics - variance and mean
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic

Nilsdalby

Denmark
23 Posts

Posted - 07/18/2002 :  7:37:48 PM  Show Profile  Edit Topic  Reply with Quote  View user's IP address  Delete Topic
Hi

I have some problems with the following code:

stat.reset();
stat.ds.data$=data1_4;
stat.ds();
stat.ds.var;

1) This code is supposed to give the variance (stat.ds.var) of dataset data1_4 but for unknown reason is "unstable", sometimes return "0", sometimes the real value to the script window. Another function, stat.ds.mean does always give the right value to the script window (of course, redirect to the script window needs the = sign).
2)I can not redirect the result (stat.ds.var or stat.ds.mean) to anywhere but the scriptwindow. Setting equal to a, data2_1, %(%H,1,1) etc. has no effect.

Any suggestions very much appreciated, thanks in advance

Nils

easwar

USA
1965 Posts

Posted - 07/19/2002 :  09:18:36 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Hello,

After the stat.reset() line, you need to add:
stat.ds.more=1;

This property is equivalent to checking the "Advanced Statistics" check box on the Stats on Cols/Rows worksheet template.

We should probably set this property as on by default - will look into that.

Easwar
OriginLab.
Go to Top of Page
  Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
The Origin Forum © 2020 Originlab Corporation Go To Top Of Page
Snitz Forums 2000