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 at the end of May, and its replacement, statalist.org is already up and running.


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

Re: st: nnmatch


From   George Vega Yon <g.vegayon@gmail.com>
To   statalist@hsphsun2.harvard.edu
Subject   Re: st: nnmatch
Date   Wed, 8 May 2013 11:31:48 -0400

As Ariel said, you should do something like this

encode FOLIO, g(FOLIO_num)
encode idllave, g(idllave_num)

nnmactch ... FOLIO_num idllave_num, exact(FOLIO_num idllave_num)

Best,

George

George Vega Yon
7 647 2552
http://cl.linkedin.com/in/georgevegayon


2013/5/8 Ariel Linden, DrPH <ariel.linden@gmail.com>:
> I am really having difficulty understanding what specifically you are
> inquiring about?
>
> First off, you are requested to clarify what program you are using and where
> you got it. In this case -nmatch- is a user-written program (findit nnmatch)
> and the accompanying article
> http://www.stata-journal.com/article.html?article=st0072
>
> What is "FOLIO" and "idllave", and what do you mean by "location of the
> data"?
>
> If these are variables in the data that are not included in the command, or
> are not included in the output, then you'll likely have to merge the output
> data to the original data that includes these variables. It could also be
> that you may need to encode() these variables if the programs you are using
> do not recognize string variables.
>
> That's as far as I can take this without more clarity from you...
>
> Ariel
>
> Date: Tue, 7 May 2013 10:26:05 -0700 (PDT)
> From: Emilio <e.alejandrot@gmail.com>
> Subject: st: nnmatch
>
> Hello, I hope you´re well.
>
> I am working with nnmatch, and I have FOLIO and idllave of each survey as
> location of the data, but when I do the nnmatch I lose the 2 string
> variables (idllave, FOLIO), but I need it for the complete information
>
> nnmatch  S06P30 treat aguaentubada Boiler Celular  Estufa Lavadora
> Microondas Computadora Refrigerador Television Cuartdormir Dueterreno
> Dueotracasa Animales Semtrabajo, m(1) bias(bias) exact(Automovil  Prophogar)
> keep(PROEmovi.dta) replace
>
>
> What could I do for keep the string variables of information ?
>
>
>
>
> *
> *   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–2014 StataCorp LP   |   Terms of use   |   Privacy   |   Contact us   |   Site index