Notice: On April 23, 2014, Statalist moved from an email list to a forum, based at statalist.org.
From | "Kristen Shorette" <kshorett@uci.edu> |
To | statalist@hsphsun2.harvard.edu |
Subject | st: combining two variables of different type |
Date | Thu, 20 Jan 2011 09:00:00 -0800 |
How can I combine two variables of different type. For example, I am using a panel data set where countries are the units of analysis and I want a variable CountryYear (AFG1985). I have the countries and years each as variables but when I use "gen countryyear=country+year" I get the error "type mismatch". Thanks, Kristen * * For searches and help try: * http://www.stata.com/help.cgi?search * http://www.stata.com/support/statalist/faq * http://www.ats.ucla.edu/stat/stata/