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
Data manipulation - your experience with mergingHi I’m working with very large datasets - ones that contain for 1mill observations with 20+ variable…
Two way pyramid graph using countries instead of rangeHello! I'm trying so hard to replicate a graph like this, it's some sort of a pyramid but it is not …
Referring to local macros using unabHello statalisters, I have 227 variables that are grouped by common prefixes. I am trying to use th…
Independent Variable predicts is highly correlated with dependent variable.I will be very grateful for your help on this issue. Independent Variable (Last Birth CS) is highly …
CEM v/s psmatch2Hi everyone, could anyone please tell me where does the algorithm of CEM and psmatch2 differ? I have…
Subscribe to:
Post Comments (Atom)
0 Response to Regression on Panel Data
Post a Comment