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
 descriptive statistics - variance and mean

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
Nilsdalby Posted - 07/18/2002 : 7:37:48 PM
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
1   L A T E S T    R E P L I E S    (Newest First)
easwar Posted - 07/19/2002 : 09:18:36 AM
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.

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