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 ?
System GMM and AB test for AR(2)Hi All: I am using system GMM method to estimate my panel data (T=6). I am new to this method. I kn…
Creating and storing residuals in a loop Code: forvalues y = 2015/2017 { // Define a for/next loop spanning years in sample …
How to declare weekly data as time series data in Stata 15Dear All I want to use time series data on a weekly basis. When I try, I get the error "repeated tim…
Documentation for non existent functionI was learning string functions in Stata. After obtaining help using help string functions command, …
Creating and storing residuals in a loopHi all I am trying to run the following code. The purpose is to capture industry and year wise resi…
Subscribe to:
Post Comments (Atom)
0 Response to How to insert control variables and the command 'by' in xtabond2 ?
Post a Comment