Hello Statalisters,
I have quarterly data for sale price and year. I am trying to fill in the gaps by interpolating and extrapolating, but I receive negative numbers which doesn't make much sense based on what I'm looking at. Here is my code:
I would appreciate any assistance with this!
Thanks,
Anoush K.
I have quarterly data for sale price and year. I am trying to fill in the gaps by interpolating and extrapolating, but I receive negative numbers which doesn't make much sense based on what I'm looking at. Here is my code:
Code:
* Example generated by -dataex-. For more info, type help dataex clear input str7 year float(sale_price) "2000q1" . "2000q2" . "2000q3" . "2000q4" . "2001q1" . "2001q2" . "2001q3" . "2001q4" 5.0 "2002q1" 6.2 "2002q2" 7.0 "2002q3" . "2002q4" 8.4 "2003q1" . "2003q2" . "2003q3" 8.8 "2003q4" 7.8 end gen qdate = quarterly(year, "YQ") format qdate %tq ipolate sale_price qdate, generate(sale_price2) epolate
Thanks,
Anoush K.
Comment