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 on April 23, and its replacement, is already up and running.

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

st: comparing contents of two columns (variables)

From   James Bernard <>
Subject   st: comparing contents of two columns (variables)
Date   Sun, 14 Apr 2013 17:31:50 +0800

Hi all,

I was wondering if you know of any command in stata that can compare
contents of two columns. Imagive I have two columns

  A                 B
-------           ---------

304             112
203             123
776             304
334             555
212             111
111             444
123             999

Now I want to count how many of the contents of column B cannot be
found in column A (which is 5 out of 7)

I looked up the web and found that someone talked about a command
called CF3, but I could not get anything more about this command.

Thanks in advance

*   For searches and help try:

© Copyright 1996–2016 StataCorp LP   |   Terms of use   |   Privacy   |   Contact us   |   Site index