I am trying scrutinize the relationship between regimetypes (political regimes eg. closed autocracy, hybridregime and liberal democracy) and the risk of civil war onset.
My data spans from 1946-2006 and includes all independent countries. It is thus panel data and therefore I wish to test for autocorrelation.
My understanding is that in order to test for autocorrelation in Stata you use the command xtserial after the regression. I used the following procedure:
. xtset country_name_numeric year
panel variable: country_name_numeric (unbalanced)
time variable: year, 1946 to 2006, but with gaps
delta: 1 unit
. xtlogit onset i.v2x_regime, or
. xtserial onset i.v2x_regime
command xtserial is unrecognized
r(199);
What am I doing wrong since Stata does not recognize the command xtserial?
//Marco Liedecke
(FYI I am new to the forum)
Related Posts with Testing for autocorrelation in a logistic regression analysis with panel data
How to calculate Jaccard SimilarityDear Statlisters, I am trying to calculate a pairwise Jaccard similarity measure and have trouble f…
combine four categorical variables altogether and generate new variableDear Stata forum, I would like to calculate a median and I know that Stata provides the code for MAD…
Is there an arbitrary scaling factor in logistic regression in Stata?Hi, Norton et al state in a recent JAMA guide that the magnitude of the odds ratio from a logistic …
Interpretation of grand mean centered versus original form level-2 variables in multilevel logistic regressionHello, I have a random intercept multilevel logistic regression model with cross-level interactions…
How to graph hours worked and wage assimilation profiles for immigrants?Dear Stata Forum, I have an unbalanced panel data set with observations at the individual level. I r…
Subscribe to:
Post Comments (Atom)
0 Response to Testing for autocorrelation in a logistic regression analysis with panel data
Post a Comment