Goodmorning,
i have a panel data UNBALANCED of 57 banks divided in quarterly from 2002 to 2015. for example the first bank has 56 observations (thus from 2002q1 to 2015q4) but others have less observations (for example from 2006q4 to 2012q4).
To do quantile regressions i set these codes:
forvalues i = 1/57 {
qreg Xi Returnlag Volatilitylag LiquiditySpreadlag CreditSpreadlag YieldSlopelag Tbilllag if IDBanks ==`i', quantile(.50)
predict var5 if IDBanks ==`i'
}
Then, to do OLS regressione i set these codes:
reg var5 ERVlag BETAlag Leveragelag MarketToBookValuelag Sizelag MaturityMismatchlag var5lag
the results are very strange in the second one. the codes are right for you? someone could you help me?
thank you so much for the possible answers.
i have a panel data UNBALANCED of 57 banks divided in quarterly from 2002 to 2015. for example the first bank has 56 observations (thus from 2002q1 to 2015q4) but others have less observations (for example from 2006q4 to 2012q4).
To do quantile regressions i set these codes:
forvalues i = 1/57 {
qreg Xi Returnlag Volatilitylag LiquiditySpreadlag CreditSpreadlag YieldSlopelag Tbilllag if IDBanks ==`i', quantile(.50)
predict var5 if IDBanks ==`i'
}
Then, to do OLS regressione i set these codes:
reg var5 ERVlag BETAlag Leveragelag MarketToBookValuelag Sizelag MaturityMismatchlag var5lag
the results are very strange in the second one. the codes are right for you? someone could you help me?
thank you so much for the possible answers.