Bookmark and Share

Notice: On April 23, 2014, Statalist moved from an email list to a forum, based at

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

st: combining two variables of different type

From   "Kristen Shorette" <>
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".


*   For searches and help try:

© Copyright 1996–2018 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   Site index