Dear Clyde Schechter, i am sorry to bother you again. Some of my banks are not fianced through deposits, so my variables RD_ratio and total_deposits are equal to 0. If i want to work only with those banks that have total deposits > 0, is this the correct way to adjust the above commands?
and
Also, some of my banks (2-3 banks) have reported values only for a small period and for the rest of the months they have missing values. Can this bias my results? What i mean is, e.g a bank with high RD_ratio has reported values for the period 2011-2015 and then there are only missing values. If i want to examine the effect of negative rates after 2015 on lending, could this bias my results as, for example, i would have the lending volumes of 20 of banks before 2015 and only 19 after 2015, since the missing observations after 2015 won't be talen into account by stata? Should i just drop these banks since they have so many missing values? I hope it is not a silly and unclear question
Code:
by mdate, sort: egen median_rd_ratio_this_month = median(RD_ratio) if RD_ratio > 0 gen byte high_RD_ratio = RD_ratio > median_rd_ratio_this_month if !missing(RD_ratio) preserve collapse (mean) Loan_ratio, by(high_RD_ratio mdate) xtset high_RD_ratio mdate xtline Loan_ratio restore
Code:
// OTHER CRITERION: MEDIAN FOR ALL BANKS IN ALL MONTHS summ RD_ratio, detail gen byte high_RD_ratio_all_months = RD_ratio > `r(p50)' if !missing(RD_ratio) & RD_ratio > 0 preserve collapse (mean) Loan_ratio, by(high_RD_ratio_all_months mdate) xtset high_RD_ratio_all_months mdate xtline Loan_ratio restore
Code:
xtreg Loan_ratio Loan_ratio_lagged c.L1.EL_ratio##NIRP##c.L1.RD_ratio L1.Dep_Riks_ratio L.1certificates_ratio i.bankid i.mdate if high_RD_all_months == 1 & mdate< tm(2018m12) & RD_ratio > 0,fe vce(cluster bankid)
Comment