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?