Hello,
I have a dataset and i need to define quarterly time variable and declare data to be a panel data. "datadate" variable - contains the calendar date of the fiscal year end of a firm. So what i did is generated a quarter variable and then declare data to be a panel data. I am not sure if my code is correct.
g quarter = qofd(datadate)
format quarter %tq
xtset permno quarter
But is it possible to use a shorter code? Will this code have the same result?
g quarter = qofd(datadate)
xtset permno quarter, format(%tq)
THank you in advance
Related Posts with panel data and time variable format
xlabel in bar chart. I want to make the negative x-axis values in the bar chart (attached figure) to positve values, eg …
rangestat errorHi, I am trying to do a regression using -rangestat-, but it gives an error saying "no result for al…
Standard error of the difference of coefficientsDear Statalist Members I run a regression where I compare the the evolution of a coefficient over a…
Panel Data & Pearson's Correlation MatrixHi, I am using log variable. Should I use the logged variable for my Pearson's matrix or regular va…
robustness test in reghdfehello everyone, I am using panel data fixed effect , and in term of the checking the robustness test…
Subscribe to:
Post Comments (Atom)
0 Response to panel data and time variable format
Post a Comment