Notice: On April 23, 2014, Statalist moved from an email list to a forum, based at statalist.org.
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
st: combining two variables of different type
From
"Kristen Shorette" <[email protected]>
To
[email protected]
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/