Dear all,
I have a panel data set A that contains firm year quarter data. Not all firms have all four quarters each year. I need to merge this data with another dataset B that is year firm observation. Hence, I must aggregate data set A into a yearly data first.
Below is the first few observations in data set A. I have not used stata in recent years, so I do not remember much about date variables.
the first observation date is viewed as 2002q1.the last is 2004q4.
Thank you,
R
I have a panel data set A that contains firm year quarter data. Not all firms have all four quarters each year. I need to merge this data with another dataset B that is year firm observation. Hence, I must aggregate data set A into a yearly data first.
Below is the first few observations in data set A. I have not used stata in recent years, so I do not remember much about date variables.
Code:
clear input long ID int date double PR 1004 168 359.55 1004 169 0 1004 170 0 1004 174 0 1004 175 0 1004 176 0 1004 177 60.17
Thank you,
R
Comment