Descriptive stats for subgroups
Posted: Thu Sep 27, 2012 11:59 pm
Hi, I have a spreadsheet in excel and my data looks like as follows :
Gender...Education...Country...Status...Index...Income
F.........College......USA........Single....Yes.....10
F........College......USA........Single....Yes......11
F.......Master.......USA........Single....No.......12
I would like to create a series for "average Income" and another series for the "number of observations" for each subgroup.
Result:
Gender...Education...Country...Status...Index...Average Income.....# of obs
F........College.......USA.......Single....Yes.............8..................1500
My data set contains over 500,000 rows with 200 subgroups with min 1,000 observations for each subgroup.
Thank you very much
Gender...Education...Country...Status...Index...Income
F.........College......USA........Single....Yes.....10
F........College......USA........Single....Yes......11
F.......Master.......USA........Single....No.......12
I would like to create a series for "average Income" and another series for the "number of observations" for each subgroup.
Result:
Gender...Education...Country...Status...Index...Average Income.....# of obs
F........College.......USA.......Single....Yes.............8..................1500
My data set contains over 500,000 rows with 200 subgroups with min 1,000 observations for each subgroup.
Thank you very much