Statalist


[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

st: AW: Re: value labels from another dataset


From   "Mendoza Aldana, Dr Jorge Antonio (WPRO)" <MendozaAldanaj@wpro.who.int>
To   <statalist@hsphsun2.harvard.edu>
Subject   st: AW: Re: value labels from another dataset
Date   Sat, 20 Sep 2008 22:06:21 +0800

Thank you very much to all and sorry for not being clear. 
The variable "divison" in the first dataset contains numeric values. The other dataset contains the "divison" variable with the same numeric values and, in another {string} variable, the corresponding name for each of those numeric values (codes). By encoding the string variable, the resulting numeric values won't  correspond those of the numeric values (the codes).
 
Jorge

________________________________

Von: owner-statalist@hsphsun2.harvard.edu im Auftrag von Martin Weiss
Gesendet: Sa 20.09.2008 17:43
An: statalist@hsphsun2.harvard.edu
Betreff: st: Re: value labels from another dataset



The description is a little hazy, but he tools in data -> labels -> label
values should be sufficient. First turn the string var and the numeric codes
into a -value label-. -encode- might also be helpful for this exercise.
Then -label save- the -value labels- and run the do file on the first
dataset.

Martin Weiss
_______________________
----- Original Message -----
From: "Mendoza Aldana, Dr Jorge Antonio (WPRO)"
<MendozaAldanaj@wpro.who.int>
To: <statalist@hsphsun2.harvard.edu>
Sent: Saturday, September 20, 2008 9:14 AM
Subject: st: value labels from another dataset


> Dear all,
> my apologies if this has been already covered. I will appreciate its
> address if so.
> I have a large dataset with numeric codes for a geographical division. In
> another dataset I have the same codes and a string variable with the name
> for each geographical division. Is there a way of using the name of the
> division from the second dataset in the first dataset?.
>
> Thank you very much in advance
>
> Jorge
>
>
>
> ====================================================
> This message was scanned for viruses with Trend Micro ScanMail, GFI
> MailSecurity and  GFI MailEssentials by the World Health Organization
> Regional Office for the Western Pacific.  However, the recipient is
> advised to scan this e-mail and any attached files for viruses.
>
> Disclaimer:
>
> This e-mail, together with any attachments, is intended for the named
> recipients only and is confidential. It may also be privileged or
> otherwise protected by law.
>
> If you have received it in error, please notify the sender immediately by
> reply e-mail and delete it and any attachments from your system. You may
> not copy or disclose its contents to anyone.
>
>
> *
> *   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/
>


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


<<winmail.dat>>




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