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
Line graph for frequency distribution by categorical variableHi Statalist, I would like to create a line graph showing frequency (percent) distribution of a giv…
Requirements for using ordinal logistic regressionHello everyone! I have a data set with N=900. All IVs and DVs are ordinal-scaled (4-point assessmen…
Use an estimated coefficient as independent variableDear Stata community, I have a panel dataset at the regional level for a set of 10 countries (i.e s…
setstars function using asdocDear Statalist Users, I am using the wonderful installation package asdoc and I am very grateful, t…
Random effects term for mother - help with some codeHi, I'm using inverse probability treatment weighting for the propensity for vaccination, followed b…
Subscribe to:
Post Comments (Atom)
0 Response to Testing for autocorrelation in a logistic regression analysis with panel data
Post a Comment