changing frequency of panel data

For questions and discussion related to reading in and working with data.
wafa
Posts: 1
Joined: Thu Jul 04, 2019 9:05 am

changing frequency of panel data

Unread post by wafa »

hi evreyone, i am working on panal data (annuel frequency : from1984 to 2007). I want to change the frequency of data: i like to consider, not a panel at annual frequency, but rather a periodic panel of 3-years.

Can you please help me! thank you
TomDoan
Posts: 7814
Joined: Wed Nov 01, 2006 4:36 pm

Re: changing frequency of panel data

Unread post by TomDoan »

No change to the data, just every three years rather than every year? Could you just use a SMPL option to include only every three entries?

print(smpl=%clock(%period(t),3)==1)

will do every third entry starting with the first. (Change the ==1 to ==2 or ==3 to start the sequencing at the second or third entry).
Post Reply