Hi dear all i am getting the below error of not sorting of data before running gmm...can you share with me some expertise how should i sort my data for running difference and system gmm. the error is shown below
. xtabond2 lneconomic_growth l.lneconomic_growth lninflation lnpopulation lnunemployement lnsecondary_school lntrade lnacco
> unts lnborrowers lnbank_branches lndebit_cards lnlife_insurance lndepositors y*, gmm(l.lneconomic_growth) iv(lninflation ln
> population lnunemployement lnsecondary_school lntrade y*) noleveleq nodiffsargan robust small
not sorted
r(5);
. . xtabond2 lneconomic_growth l.lneconomic_growth lninflation lnpopulation lnunemployement lnsecondary_school lntrade lnacco
> unts lnborrowers lnbank_branches lndebit_cards lnlife_insurance lndepositors, gmm(l.lneconomic_growth) iv(lninflation lnpop
> ulation lnunemployement lnsecondary_school lntrade) noleveleq nodiffsargan robust small
not sorted
r(5);
the description of my data is given below
xtdescribe
countryid: 1, 2, ..., 100 n = 100
year: 2001, 2002, ..., 2017 T = 17
Delta(year) = 1 unit
Span(year) = 17 periods
(countryid*year uniquely identifies each observation)
Distribution of T_i: min 5% 25% 50% 75% 95% max
17 17 17 17 17 17 17
Freq. Percent Cum. | Pattern
---------------------------+-------------------
100 100.00 100.00 | 11111111111111111
---------------------------+-------------------
100 100.00 | XXXXXXXXXXXXXXXXX
further more stata is showing that my data is strongly balanced however there are some missing observation too in my data and i am sure it is strongly unbalanced.
xtset countryid year
panel variable: countryid (strongly balanced)
time variable: year, 2001 to 2017
delta: 1 unit
Related Posts with Facing problem in analyzing unbalanced panel data / using gmm both system and difference
Flag most frequent values in a subgroup & apply flag to same values in other subgroupsHi all, I have a dataset with a variable surg_type (“surgery type”) that can have the values 0, 1 o…
repeated measurements for exposure and one mesurement for outcomeDear members I am conducting a study where (among other things) I intend to explore the association…
Variable Fails To Uniquely Identify Observations in the Using DataHi, I am using two rounds of the IHDS (Indian Human Development Survey) Individual and Household da…
using DHS DATA SETHello, I am new to stata, and making use of DHS Data set, b4__01 to b4_20 are the sex for the number…
How to estimate the coefficient in model with latent dependent variable?Hello, I have a question regarding the estimation of a model with a latent dependent variable, and …
Subscribe to:
Post Comments (Atom)
0 Response to Facing problem in analyzing unbalanced panel data / using gmm both system and difference
Post a Comment