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
 Origin Forum
 Averaging values from two groups
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic

dkneuro

USA
2 Posts

Posted - 06/19/2015 :  9:41:54 PM  Show Profile  Edit Topic  Reply with Quote  View user's IP address  Delete Topic
I'm brand new to origin so I have a very basic question. I have one x categorical variable (lets call them control and treatment) and the y values which would be some numerical value.

My question is: is there any way I can input code that will separately average each individual group (i.e. the output is the separate averages for control and treatment)? This would especially be helpful since my data is mixed with control and treatments interleaved in the columns so I don't want to individually pick out all the data points of one treatment.

I realize I could simply make control and treatment separate y-values (right?) and individually average those columns, however I was hoping to circumvent this problem of manually formatting my data too much. Any help or alternate solutions are much appreciated, and if you need any clarification please don't hesitate to ask. Still trying to learn this platform!

lkb0221

China
497 Posts

Posted - 06/22/2015 :  11:17:53 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
To separate different catogories only, try this:
http://www.originlab.com/doc/Origin-Help/Wks-Unstacking-Cols

If you just want statistics result for different groups, try this:
http://www.originlab.com/doc/Tutorials/DescStats#Calculating_Descriptive_Statistics_on_Grouped_Data

Edited by - lkb0221 on 06/22/2015 11:19:57 AM
Go to Top of Page

dkneuro

USA
2 Posts

Posted - 06/22/2015 :  6:37:33 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
The unstacking worked great, thank you so much!
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