Hi Stata members. I need quick help. i have a panel of firms that belong to different sectors of the economy. and i have returns for each firm. thus i have the following data
firm month Sec Returns
A 1 agric 20
A 2 agric 21
B 1 banking 15
B 2 banking 10
Now, i need to obtain sectoral mean for every month. help me with the code in stata
firm month Sec Returns
A 1 agric 20
A 2 agric 21
B 1 banking 15
B 2 banking 10
Now, i need to obtain sectoral mean for every month. help me with the code in stata
Comment