Quantcast
Channel: Statalist
Viewing all articles
Browse latest Browse all 65099

Creating panel for quarterly data for multiple years

$
0
0
Hiee everyone.I am working on a macro project where i have 7 macro variables for 20 countries from 2006 to 2016.it is a quarterly data in the form of 2006Q1,2006Q2,..,2006Q4 to 2016Q2.
I run few commands to generate a panel data.the commands are as follows:
encode country, generate(countryid)

generate quarter2=quarter+tq(2006q1)-1

format quarter2 %tq

xtset countryid quarter2

After running them,the error 451 arises which says repeated values within panel.
Can anyone please suggest me to how to create a panel data for my data set so that my data is more of a readable form where time variable is explained as 2006Q1 to 2016Q2

Viewing all articles
Browse latest Browse all 65099

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>