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
Exporting F-Statistics and p-value after ivreg2 commandDear all, I am using Code: ivreg2 command to do my analysis with Stata 15 (IC). However, I need to…
Creating different variables for firm-yearHi Statlist community, I have a dataset where I have different institutional investors for each yea…
Year and Industry Fixed Effects in Cross-sectional logit regressionHi Everyone, I would appreciate your help on the below: I am using Stata 17. I have a cross-sectiona…
How to construct children data based on their parents' data?Hi all, I have a household dataset in which respondents' data are in a long layout but their childr…
Issue Installing PyStataHello! I'm launching Stata from Jupyter notebook (using Anaconda) on a Mac. I'm following this guid…
Subscribe to:
Post Comments (Atom)
0 Response to Testing for autocorrelation in a logistic regression analysis with panel data
Post a Comment