<>
Have you tried to -merge- on the string variable and look at the _merge
variable that Stata generates?
HTH
Martin
-----Ursprüngliche Nachricht-----
Von: [email protected]
[mailto:[email protected]] Im Auftrag von Alessandro
Gambini
Gesendet: Mittwoch, 10. Februar 2010 13:14
An: [email protected]
Betreff: st: comparing datasets by string variable
Dear Statalisters,
I need to compare two datasets (the first with 4416 obs. and the second with
144000 obs) by a string variable (which after using recast command has now
the same dimension in both datasets). The string variable is something like
"Surname".
What I need to do is to find which observations, identified by this
variable, belong to both datasets.
I am afraid that the cf command is useless in this case, since the two
datasets have different dimension. Am I wrong? How can I approach the
problem?
Thank you very much.
Alessandro Gambini
__________________________________
Alessandro Gambini - PhD Economist
Dipartimento di Economia e Mo.Fi.R.
Facoltà di Economia "Giorgio Fuà"
Università Politecnica delle Marche
P.le Martelli n.8 - 60121 Ancona
Tel. +39 071 2207230
Email [email protected]
*
* 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/