Hi all,
For my (accounting) thesis I have to compose discretionary accruals. The first step of this is changing my data from a wide format into a long format.
My dataset consists of 1400 firm observations with quarterly data ranging from 2015Q1 to 2017Q4. There is still no variable called 'year'.
to this:
I used this command:
reshape long TotalAssets TotalRevenue AccountsReceivable PPE, i(FormFilingID) j(Year)
but then I get the following output:
variable Year contains all missing values
r(498);
I think the problem has to do with there is both year and quarter info in the name..
Can someone please help so I can go on with my data analysis?
Thanks in advance.
For my (accounting) thesis I have to compose discretionary accruals. The first step of this is changing my data from a wide format into a long format.
My dataset consists of 1400 firm observations with quarterly data ranging from 2015Q1 to 2017Q4. There is still no variable called 'year'.
Form Filing ID | TotalAssets2015Q1 | TotalAssets2015Q2 |
1 | xx | xx |
2 | xx | xx |
Form Filing ID | Year | TotalAssets |
1 | 2015Q1 | xx |
1 | 2015Q2 | xx |
1 | etc | xx |
reshape long TotalAssets TotalRevenue AccountsReceivable PPE, i(FormFilingID) j(Year)
but then I get the following output:
variable Year contains all missing values
r(498);
I think the problem has to do with there is both year and quarter info in the name..
Can someone please help so I can go on with my data analysis?
Thanks in advance.
Comment