Statalist The Stata Listserver


[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

st: Question about fndmtch2


From   Socrates Mokkas <[email protected]>
To   [email protected]
Subject   st: Question about fndmtch2
Date   Thu, 02 Nov 2006 20:44:50 +0000

Hi All,

I seem to have a problem with the command fndmtch2.
My data is a huge sample of companies. They have the form of:

Firms	Inter	Owner	match
c	r	g	0
c	r	t	1
b	t	r	1

I want find whether companies that are "Owners" are included in the category 
of "Inter" also. I run the command fndmtch2 which gives me the variable "match"
The command I run is:
fndmtch2  Owner Inter, generate(match3) count miss

What I do not understand is why isn't match=2 for the case of the 3rd observation since the element of "r" can be met twice (1st and 2nd observation) in the "Inter" variable. Thank you very much!

Regards,
Socrates

*
*   For searches and help try:
*   http://www.stata.com/support/faqs/res/findit.html
*   http://www.stata.com/support/statalist/faq
*   http://www.ats.ucla.edu/stat/stata/



© Copyright 1996–2024 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index