Dear all,
I would like to find the effect of bank liquidity risk (my independent variable) on loan pricing (y). Professor suggested me to use firm(borrower) x year fixed effect to fix the effect of borrower for demand side and cluster SE with firmxyear. I am not sure whether what I did is correct or not.
egen B_year = group(BID year) (where BID is borrowerID)
then, " areg logy liqtoA2 logA logAmount logMat, absorb(B_year) vce(cluster B_year)"
I also ran xtreg using
xtset B_year
xtreg logy liqtoA2 logA logAmount logMat,fe vce(cluster B_year)
For both commands, I got the same coefficient estimates, but slightly different Standard errors. Do both commands can be used interchangeably?
Additionally, If I use firm fixed effect and year fixed effect separately, Does it mean the same? (because the coefficient I got was different)
For example, I use
xtset BID (where BID is borrowerID)
xtreg logy liqtoA2 logA logAmount logMat i.year, fe vce(cluster B_year) / or vce(cluster BID)
Please advise and Thank you in advance.
Related Posts with Difference between areg and xtset for firmxyear fixed effect
nana …
Line break in coding returns me with error message after using Rcall packageCode: rcall: out1 <- att_gt(yname="ln_incwage", tname="year", gname="treat_1", xformla=~male + a…
Stochastic frontier analysis: How to choose between time-invariant and time-varying decay SFA? Hello everyone: I am working on estochastic frontier analysis in the context of data panel. What s…
Whether saving the do file when STATA is running affects STATA performance?I am quite new to STATA. I am running a set of code. At the same time, I also fixed some code in oth…
Help with Master Thesis | Fixed EffectsDear forum, I have a urgent question. I am writing my thesis about cross-border M&A. Hence, I u…
Subscribe to:
Post Comments (Atom)
0 Response to Difference between areg and xtset for firmxyear fixed effect
Post a Comment