Notice: On April 23, 2014, Statalist moved from an email list to a forum, based at statalist.org.
From | Christopher Baum <kit.baum@bc.edu> |
To | "<statalist@hsphsun2.harvard.edu>" <statalist@hsphsun2.harvard.edu> |
Subject | Re: st: Adding a variable to a panel dataset |
Date | Mon, 1 Oct 2012 11:04:19 +0000 |
On Oct 1, 2012, at 2:33 AM, Jason wrote: > I have constructed a panel dataset containing data on +14,000 firms > from 1998 to 2008. I created a dummy variable that identifies the > country where each firm is located (i.e., China, France, Germany, > Japan, India, UK, or US). > > I now want to add the unemployment rate for each country that would > map into each firm's panel. That is, I would like a single column that > would match the country's unemployment rate to the panel of the > individual firm. > > Is there a relatively easy way to do this? This is a FAQ: http://www.stata.com/support/faqs/data-management/group-characteristics-for-subsets/ Kit Kit Baum | Boston College Economics & DIW Berlin | http://ideas.repec.org/e/pba1.html An Introduction to Stata Programming | http://www.stata-press.com/books/isp.html An Introduction to Modern Econometrics Using Stata | http://www.stata-press.com/books/imeus.html * * For searches and help try: * http://www.stata.com/help.cgi?search * http://www.stata.com/support/faqs/resources/statalist-faq/ * http://www.ats.ucla.edu/stat/stata/