Bookmark and Share

Notice: On March 31, it was announced that Statalist is moving from an email list to a forum. The old list will shut down on April 23, and its replacement, statalist.org is already up and running.


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

Re: st: changing the name of cases


From   Matthew White <mwhite@poverty-action.org>
To   statalist@hsphsun2.harvard.edu
Subject   Re: st: changing the name of cases
Date   Mon, 3 Oct 2011 09:26:26 -0400

> I have to combine two datasets but some labels of cases are different
> such as "South Korea" in one dataset and "Republic of Korea" in the
> other.
> If I would like to make both of the name of cases same, do I have
> change them case by case?

With -merge- and -append-, if a variable in both data sets is also
value-labeled in both, I think the label in the master data set will
be used.

Best,
Matt

On Mon, Oct 3, 2011 at 8:16 AM, Yang, Chongmin <chongminyang@gmail.com> wrote:
> I want to know how I can change the name of cases.
> For example, one of the cases included in "country" variable is "China
> version1" and I want to change it into "China."
>
> I have another question.
> I have to combine two datasets but some labels of cases are different
> such as "South Korea" in one dataset and "Republic of Korea" in the
> other.
> If I would like to make both of the name of cases same, do I have
> change them case by case?
> Do you have any easier way to change them?
>
> Thanks.
> *
> *   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/
>



-- 
Matthew White
Data Coordinator
Innovations for Poverty Action
101 Whitney Avenue, New Haven, CT 06510 USA
+1 434-305-9861
www.poverty-action.org

*
*   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/


© Copyright 1996–2014 StataCorp LP   |   Terms of use   |   Privacy   |   Contact us   |   Site index