Hello all,
First of all, I am quiet inexperienced in Stata, to beforehand apologize for the probably vague description and my appreciation for taking the effort to read this.
So this is my situation: I have a panel data set with firms, years and the firms' owners. For every year and every firm, all the holdings of the owners are given separately. I would like to calculate the sum of these holdings for every firm at every point in time.
I have included a picture showing what my dataset looks like. As you can see for every point in time (fdate) and firm (cusip), I have holdings by multiple parties, as shown under 'shares'. I want to create a new variable per firm per point in time with the sum of these holdings.
What is the best way to do this?
Thank you and best regards,
Ralph Klein
First of all, I am quiet inexperienced in Stata, to beforehand apologize for the probably vague description and my appreciation for taking the effort to read this.
So this is my situation: I have a panel data set with firms, years and the firms' owners. For every year and every firm, all the holdings of the owners are given separately. I would like to calculate the sum of these holdings for every firm at every point in time.
I have included a picture showing what my dataset looks like. As you can see for every point in time (fdate) and firm (cusip), I have holdings by multiple parties, as shown under 'shares'. I want to create a new variable per firm per point in time with the sum of these holdings.
What is the best way to do this?
Thank you and best regards,
Ralph Klein
Comment