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
PPML Reset Test ResultHello to all of you. I have been working in a gravity model with 133 countries from 2005 to 2018 (O…
PPML reset testHello to all of you. I have been working in a gravity model with 133 countries from 2005 to 2018 (O…
Statistical formula for calculating 95% CIs from two geometric meansHello, I have the following data: Group 1: Mean = 8985, confidence intervals = 5705–14150 67 peopl…
Significant AR(2) in System-GMM where the model does not include the lagged DVHi all, I am working on a system-GMM and the model does not include the lagged dependent variable. …
Trouble with countingThis is what my dataset looks like: Code: input float(firmid year firm_prod) long productid double …
Subscribe to:
Post Comments (Atom)
0 Response to Regression on Panel Data
Post a Comment