Hi everyone,
I am running a fixed-effects model with robust standard errors and I'd like to test for within-group serial correlation. The relevant code is the following:
xtset country_num year
xtreg score second_period third_period, fe vce(robust)
I read that I should use xtserial for the test, but when I try to run the following code: xtserial score, I get the error message "no observations". I don't know why I get it and how I could avoid it.
Sorry if this sounds trivial and thanks in advance!
Related Posts with Problem with xtserial
Remove part of a Text in observationHi guys, Below is a sample of my data. I would like to remove the "-TOT RETURN IND" in all the obser…
Finding and plotting the trend of the weighted average of variable Code: * Example generated by -dataex-. To install: ssc install dataex clear input double total_asse…
How to Run Random Forest for Time-Series DataHi, I am writing this post to ask whether there is any Stata command (or doing manually) to apply t…
Generating means for a region using only one observation per householdHi, I have a question regarding generating averages. I have one column with a unique Houshold ID fo…
Main effect in logistic regression with interactionHello, I have a logistic regression model with interaction term (variable##sex). Variable is catego…
Subscribe to:
Post Comments (Atom)
0 Response to Problem with xtserial
Post a Comment