Hello everyone. I have a monthly panel data set ranginh over 10 years for 36 banks, and 18 variables. However, for some of the banks data are being reported only every quarter. I have a few questions that I would like to and i hope i won't be too much bother.
First i would like to know if it is possible to fill in the missing data for these banks using interpolation and if yes, how should i decide which method is best for my data? e.g is linear interpolation the best or should i use some other method?
Secondly, i have used this command ipolate
and it seemed to work, but i would like to ensure that this is the correct command for linear interpolation.
Lastly, i would like to know if for example 10 out of the 36 banks that i have report only quarterly data and i use interpolation in order to fill in the monthly data, if this would cause a problem for my analysis and if it would be better to just let the missing values be or to remove these banks completely. I would like to note that i do not know the reason why for these banks there are only quarterly data available while for the rest of the banks there are monthly data available.
Here is a sample of my data from a bank that has only quarterly data availabe:
Thank you for your help in advance.
First i would like to know if it is possible to fill in the missing data for these banks using interpolation and if yes, how should i decide which method is best for my data? e.g is linear interpolation the best or should i use some other method?
Secondly, i have used this command ipolate
Code:
Lending_HH month, gen(new_lend_hh) epolate by(bank_id)
Lastly, i would like to know if for example 10 out of the 36 banks that i have report only quarterly data and i use interpolation in order to fill in the monthly data, if this would cause a problem for my analysis and if it would be better to just let the missing values be or to remove these banks completely. I would like to note that i do not know the reason why for these banks there are only quarterly data available while for the rest of the banks there are monthly data available.
Here is a sample of my data from a bank that has only quarterly data availabe:
Code:
* Example generated by -dataex-. For more info, type help dataex clear input byte bank_id str48 banks long(month Balances_at_Riks Treasury_bills Lending_MFI Lending_to_Riks Lending_to_banks Lending_NFC Lend_Entr_HH Lending_HH Assets Dep_Riks Dep_NFC Dep_Entr_HH Dep_HH Dep_other_HH Debt_securities) 4 "Falkenbergs Sparbank" 612 . . . . . . . . . . . . . . . 4 "Falkenbergs Sparbank" 613 . . . . . . . . . . . . . . . 4 "Falkenbergs Sparbank" 614 22 0 191 0 191 1249 1336 3553 5996 0 1058 1026 3681 2655 16 4 "Falkenbergs Sparbank" 615 . . . . . . . . . . . . . . . 4 "Falkenbergs Sparbank" 616 . . . . . . . . . . . . . . . 4 "Falkenbergs Sparbank" 617 21 0 325 0 325 1262 1364 3600 6178 0 1109 1049 3771 2722 15 4 "Falkenbergs Sparbank" 618 . . . . . . . . . . . . . . . 4 "Falkenbergs Sparbank" 619 . . . . . . . . . . . . . . . 4 "Falkenbergs Sparbank" 620 26 0 493 0 493 1246 1371 3608 6246 0 1141 1053 3877 2823 14 4 "Falkenbergs Sparbank" 621 . . . . . . . . . . . . . . . 4 "Falkenbergs Sparbank" 622 . . . . . . . . . . . . . . . 4 "Falkenbergs Sparbank" 623 24 0 312 0 312 1312 1391 3645 6515 0 1209 1135 4020 2886 13 4 "Falkenbergs Sparbank" 624 . . . . . . . . . . . . . . . 4 "Falkenbergs Sparbank" 625 . . . . . . . . . . . . . . . 4 "Falkenbergs Sparbank" 626 24 0 265 0 265 1372 1381 3659 6594 0 1174 1086 4024 2938 13 4 "Falkenbergs Sparbank" 627 . . . . . . . . . . . . . . . 4 "Falkenbergs Sparbank" 628 . . . . . . . . . . . . . . . 4 "Falkenbergs Sparbank" 629 22 0 453 0 453 1423 1409 3714 6868 0 1211 1123 4207 3084 12 4 "Falkenbergs Sparbank" 630 . . . . . . . . . . . . . . . 4 "Falkenbergs Sparbank" 631 . . . . . . . . . . . . . . . 4 "Falkenbergs Sparbank" 632 24 0 453 0 453 1404 1418 3747 7082 0 1207 1126 4291 3164 12 4 "Falkenbergs Sparbank" 633 . . . . . . . . . . . . . . . 4 "Falkenbergs Sparbank" 634 . . . . . . . . . . . . . . . 4 "Falkenbergs Sparbank" 635 28 0 467 0 467 1386 1429 3743 7066 0 1199 1167 4320 3153 15 4 "Falkenbergs Sparbank" 636 . . . . . . . . . . . . . . . 4 "Falkenbergs Sparbank" 637 . . . . . . . . . . . . . . . 4 "Falkenbergs Sparbank" 638 27 0 390 0 390 1400 1453 3780 7167 0 1173 1130 4290 3160 12 4 "Falkenbergs Sparbank" 639 . . . . . . . . . . . . . . . 4 "Falkenbergs Sparbank" 640 . . . . . . . . . . . . . . . 4 "Falkenbergs Sparbank" 641 16 24 436 0 436 1434 1471 3827 7367 0 1221 1102 4364 3262 12 end format %tm month
Comment