Hello there, I have a panel with variables fundno, fdate, stock_id, stock_price and holdings. Many of fundno - stock_price pairs are observed twice a year( second and fourth quarter) before 2004 and I want to impute first and third quarterly obs. before 2004 by carrying forward the previous fdate's holding for each fundno - stock_id pair. I tried to use "fillin fundno stock_id fdate" to get a balanced panel and then delete consecutive missing obs. (>=2) for each fundno - stock_id pair and then use carryforward, but the balanced data got so huge that my laptop couldn't handle. Plus I couldn't find a good way to delete consecutive missing obs.(tried tsspell but it didn't work) Is there any better way to this?
Thanks,
Hank
Related Posts with How to impute quarterly panel data based on semiannual panel data by copying previous obs.?
Old syntax commandCan someone please explain what this command does? I think it is an older version syntax. How could …
R-squared is too smallHi, I am doing my research about using Fama-French factors to get the abnormal return. I have collec…
ytitle horiztonallyHi there! Normally, I understand one can print y-titles horizontally in Stata with the option, Cod…
Estimating fixed-effects panel linear regression using gmmI am trying to use `gmm` to replicate the results of using `xtreg, fe`. In short, I'm looking for a …
How to create databases by loopsHi statausers: I'm trying to run a Bootstrap code to get standard errors out of a matrix. The code …
Subscribe to:
Post Comments (Atom)
0 Response to How to impute quarterly panel data based on semiannual panel data by copying previous obs.?
Post a Comment