Hi all, I have a data now of asset of public firms across different period now. Suppoes that I have L firms, and T periods. I have three variables. The first one is firms ID, the second is period, and the third is the asset. The asset is like this. For each period t and firm l, there is an value of the firm's asset a_{t,l} (of course, there are many missing values, meaning this firm is not public at that time). What I want now is the weighted average of asset of all time, and the weight of each firm is the share of their asset in that period. That is, for each period t, I want to get \sum_l a_{t,l}^2/(\sum_l a_{t,l}). Does anyone know how to deal with it? I heard that it should be an easy job but I really know little about stata. I am sorry if my question is not clear enough. I don't know whether the forum allows us to upload picture. If yes please let me know, I will upload one.
-
Login or Register
- Log in with
Comment