Bookmark and Share

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]

Re: st: Combining string and numeric variables


From   Nick Cox <[email protected]>
To   "[email protected]" <[email protected]>
Subject   Re: st: Combining string and numeric variables
Date   Wed, 4 Dec 2013 10:23:13 +0000

Explained in many places. Here's one:

SJ-7-4  dm0034  . . . Stata tip 52: Generating composite categorical variables
        . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .  N. J. Cox
        Q4/07   SJ 7(4):582--583                                 (no commands)
        tip on how to generate categorical variables using
        tostring and egen, group()

http://www.stata-journal.com/sjpdf.html?articlenum=dm0034


Nick
[email protected]


On 4 December 2013 09:48, Miguel A. Duran <[email protected]> wrote:
> Hi, statalisters. I have a panel data set in long form. This panel data set
> has two variables to identify observations, one for country (eg, UK) and one
> for region (eg, 11 or M0). I have to transform the dataset into wide form.
> Nevertheless, to do this, if I am not mistaken, previously I have to combine
> these two identifying variables (to generate, eg, values such as UKM0). Does
> anyone know whether this can be done with Stata? Thanks in advance.
>
> Miguel A.
>
> *
> *   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/
*
*   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/


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