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
 stadistics on selected rows in a column

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
coll@inia. Posted - 05/02/2009 : 3:06:12 PM
Origin 8pr0 WinXP
does anybodu out there knows the code behing the stadistics on columns buttom?.

It does not show any code when ctrl-shift is co-clicked.

I would like to automatically find mean and sd from selected rows in the same column but I do not find any code for it that works on Origin 8!

thanks, julio
2   L A T E S T    R E P L I E S    (Newest First)
coll@inia. Posted - 05/04/2009 : 1:15:35 PM
Many thanks Deanna. It works beautifully.

I came across your stats information provided but I was unable to get the code, specially because the ix:=code.

I worked around other solution by marking those rows I did not wanted to be included in the sum(col(x)) function but yours is more simple.

Again thanks, julio
Deanna Posted - 05/04/2009 : 02:14:13 AM
Hi Julio,

I think you can try the stats X-Function.

Suppose you have selected some rows of a column and want to save the mean of them to a variable named mymean and their sd to mysd. Use the following script:



stats mean:=mymean sd:=mysd;
mymean=;
mysd=;



Please see more details on this X-Function here:
http://www.originlab.com/www/helponline/Origin8/en/mergedProjects/X-Function/X-Function/Stats.html

Deanna
OriginLab Technical Services

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