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: nnmatch


From   George Vega Yon <[email protected]>
To   [email protected]
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 <[email protected]>:
> 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 <[email protected]>
> 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–2018 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   Site index