Hello all,
I am doing a research on the Persistence of Profit in the banking sector in 14 emerging countries. I want to sort the results by country and use the cross participation as variable control. Here is the command I use :
by Country (Bank Year), sort: xtabond2 ROA L.ROA GRTH EFFIC SIZE CAR RISK LEVR CROSS INFL GDPGRTH INTRATE, gmm(L.ROA,collapse) iv(GRTH EFFIC SIZE CAR RISK LEVR CROSS INFL GDPGRTH INTRATE, equation(level)) nodiffsargan twostep robust orthogonal small.
But I doesn't work, I get this error message :
Country = Bahrain
not sorted
r(5);
Even though, I used 'sort' before running xtabond2.
What's wrong ?
Related Posts with How to insert control variables and the command 'by' in xtabond2 ?
How to find the amount of gaps in a natural number sequence?Dear Stata community, I have some oddly formatted data, as in the following example dataset: Code:…
keep Data between certain datesHi, I want to drop all data that is outside of my range. I tried following code Code: drop if mont…
Computing Z-Score (risk measure)Hi guys, I´m new here and have just startet do use STATA for my thesis. So basically I´m interested…
Sample size calculation for multiple arm designHello everyone, I hope you are all doing well. I have a friend that is designing a study evaluating …
Drop if 3 consecutive quarters of negative sales growthHey! I have some difficulties to write a proper code to clean my data. The goal is to keep only fir…
Subscribe to:
Post Comments (Atom)
0 Response to How to insert control variables and the command 'by' in xtabond2 ?
Post a Comment