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
George Vega Yon <firstname.lastname@example.org>
Re: st: nnmatch
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)
George Vega Yon
7 647 2552
2013/5/8 Ariel Linden, DrPH <email@example.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
> What is "FOLIO" and "idllave", and what do you mean by "location of the
> 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...
> Date: Tue, 7 May 2013 10:26:05 -0700 (PDT)
> From: Emilio <firstname.lastname@example.org>
> 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: