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
Alternative to fixed-effects Binomial Model for longitudinal dataHi all: My dependent variable, v6mouses, is drug use; 60.15% of the result is 0 and 26.92% of the r…
Interaction term and main effectsDear Stata forum members, Would you please help with interpretation of my obtained results. I have …
How to reshape this data to panel data?Dear all,How to reshape the data below to panel data? clear input double(year FDI_beijing FDI_tianj…
Posthoc testing after ANOVADear Statalist team, I am interested in doing Posthoc testing after ANOVA. I only have aggregate d…
Incorrect Stata Error Message for xtdidregressWhen I estimate Code: import delim "https://raw.githubusercontent.com/SucreRouge/synth_control/mast…
Subscribe to:
Post Comments (Atom)
0 Response to Testing for autocorrelation in a logistic regression analysis with panel data
Post a Comment