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
nicelabels downloadable from SSCThanks as ever to Kit Baum, a new package nicelabels is now downloadable from SSC. It may be thought…
Help: Generating a new variable on a subsampleHello! I am a beginner in Stata. My problem: I have a selection of countries in my dataset and I w…
Different results for weighted median using same Stata Manual Methodology [Stata/SE 15.0]Hello everyone, I found something about weighted medians in Stata/SE. To my knowledge and what I ha…
Control variables for difference-in-differenceHi all, I have been struggling to get help on this I have sales data during an intervention (the i…
Fama MacBeth with rolling betasHello, I would like to run a Fama-MacBeth regression with time varying betas and risk prices. I hav…
Subscribe to:
Post Comments (Atom)
0 Response to Testing for autocorrelation in a logistic regression analysis with panel data
Post a Comment