What does "combine" mean? If it means add, then know that
gen z = x + y
is the way to add two variables to produce a third.
Nick
[email protected]
Sean Lunde
I am working with a set of panel data grouped by brand (the panel var)
and date (the time var). I want to combine the values of some of the
brand variables together,( e.g. combine the salesdollar value for
brand x with salesdollar value for brand y). All of the variables I
want to combine are numeric.
*
* 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/