Sorry Nick. As I use dataex to produce a sample I change some labels to make it simply. Anyways, Tbtm should be replaced by profit.
If you do it now, you will see that it does not produce the required dataset as in #12.
I think one problem is with the id variable. In fact, I start with data about firms (gvkey is the firm id) as in my post #8 where each firm belong to an industry (I have 5 industries). I do not know why dataex shows industries as numbers (in my dataset industry is mining, manufacturing, and so on). As explained before I want to create different time series where each series represent the value weighted average of profit of firms in a specific industry at a certain quarter, i.e. as per #12. In this case, I will have only a time identifier and no firm identifier.
reshape requires a firm identifier which makes me confused.
Lisa
If you do it now, you will see that it does not produce the required dataset as in #12.
I think one problem is with the id variable. In fact, I start with data about firms (gvkey is the firm id) as in my post #8 where each firm belong to an industry (I have 5 industries). I do not know why dataex shows industries as numbers (in my dataset industry is mining, manufacturing, and so on). As explained before I want to create different time series where each series represent the value weighted average of profit of firms in a specific industry at a certain quarter, i.e. as per #12. In this case, I will have only a time identifier and no firm identifier.
reshape requires a firm identifier which makes me confused.
Lisa
Comment