Hi All,
I need to find mean and standard deviation for each category separately. I tried bysort but I couldn't make it. Could you please help me with it?
Here is a small sample of my data. I need to find mean and standard deviation for each id.
Thanks
I need to find mean and standard deviation for each category separately. I tried bysort but I couldn't make it. Could you please help me with it?
Here is a small sample of my data. I need to find mean and standard deviation for each id.
Code:
clear input int id int category int value int freq id category value freq 1 10 4 8 1 11 3.69 9 1 12 4.32 8 1 12 4.12 7 2 20 4.62 7 2 21 3.56 6 2 10 4.14 5 2 12 4.6 7 2 10 4.72 8 3 21 4.32 9 3 22 4.12 7 3 22 4.62 6 4 10 3.56 9 4 21 4 9 end
Comment