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: Compare two datasets wrt value labels
From
Joe Canner <[email protected]>
To
"[email protected]" <[email protected]>
Subject
RE: st: Compare two datasets wrt value labels
Date
Thu, 29 Aug 2013 13:20:19 +0000
-uselabel- might be better for automating the comparison between the two data sets
-----Original Message-----
From: [email protected] [mailto:[email protected]] On Behalf Of Meisfjord, Jørgen Rajan
Sent: Thursday, August 29, 2013 9:09 AM
To: '[email protected]'
Subject: SV: st: Compare two datasets wrt value labels
Thanks Nick, you gave me an idea. I have two datasets, form two different surveys. I am told that the variables are the same, and that codebooks are the same, too, but I want to verify. What I can do is:
1. ask for -labelbook- (alphabetized) in the first survey dataset.
2. copy the result from the screen, and paste it into a new file as a string variable, say <labelbook_1> 2. create a similar variable, <labelbook_2>, based on the second survey dataset 3. assert labelbook_1== labelbook_2
Or something like that?
Jørgen
-----Opprinnelig melding-----
Fra: [email protected] [mailto:[email protected]] På vegne av Nick Cox
Sendt: 29. august 2013 14:32
Til: [email protected]
Emne: Re: st: Compare two datasets wrt value labels
Not clear exactly what you are seeking. Presumably you have datasets that should be compatible but there are might be clashes in detail.
Running -labelbook- in each dataset separately and looking at the results should help.
A -decode- on each variable with value labels would produce string variables that should be compatible.
(-multencode- (SSC) is a tool to ensure that the process can be reversed consistently.) Nick [email protected]
On 29 August 2013 13:10, Meisfjord, Jørgen Rajan <[email protected]> wrote:
> Is there a simple way to compare two datasets with respect to value labels?
>
> Thanks.
>
> Jørgen Meisfjord
> Dpt. of Health Statistics | Norwegian Institute of Public Health
>
> *
> * 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/
*
* 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/