Hello,
I am having a bit of trouble running the xtreg command on my dataset. I have panel data on 24 countries for a 12 year time period (2001-2012) on 13 variables (HRlog, DV, dGDP, GDP, CPI, GINI, HDI, dUP, Dpenalty, PM1, PM2, PM3, UEM). I am doing an analysis on homicide rates in the developing world and wish to know if capital punishment has any deterrent effect on homicide rates or not. So my dependent variable is HRlog (homicide rates per 100,000 people) and I have taken the log of it, while the rest of the socio-economic indicators like the Gini Index and HDI and so on are my explanatory variables. DV (legislation on domestic violence) and Dpenalty (Capital punishment) are dummy variables whose value is between 0 and 1. 0 means no policy on domestic violence in that country and no death penalty, while 1 means there is legislation on domestic violence and there is capital punishment. I have also created year dummies from y2001-y2012.
Before running xtreg, I do setup my data as panel data by running the xtset command STATA recognizes it as Panel Data.
So i am running the command xtreg HRlog dGDP GDP GINI HDI CPI PM1 PM2 PM3 UEM dUP NoDeath Death NoLegis Legis y2001 y2002 y2003 y2004 y2005 y2006 y2007 y2008 y2009 y2010 y2011 y2012, fe
But I get the error no observations r(2000). Please help me, what am I doing wrong?
Related Posts with Regression on Panel Data
How to find lag and lead timeHello, I have this time series data looking at whether food contamination in a school district led …
Margins plots curve lines other than straight lineAfter using "margins" command, I use "marginsplot" command to graph the margins plots. I get straigh…
Inference from initial statistics to get a hang of coefficient of interests Code: Earning employment Establishment Treat 27,425.41 19,458.09 3,829.57 (10,636.87) (3…
Calculate average of the (pairwise) sample cross-correlationsDear forum, since this is my first post here and since I am new to Stata, I hope my post fulfills th…
Forcing Stata to Post a Singular Variance-Covariance Matrix ("variance matrix is nonsymmetric or highly singular")Hello all, I am trying to get around the "variance matrix is nonsymmetric or highly singular" erro…
Subscribe to:
Post Comments (Atom)
0 Response to Regression on Panel Data
Post a Comment