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, statalist.org is already up and running.


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

Re: st: routine for matching of a str-variable


From   Nick Cox <njcoxstata@gmail.com>
To   statalist@hsphsun2.harvard.edu
Subject   Re: st: routine for matching of a str-variable
Date   Thu, 12 May 2011 10:13:36 +0100

Please use Stata terminology and specific Stata commands. What is a
table here, data or the results of a tabulation?

Please tell us the names of your variables and whether this is one
dataset or two.

Nick

On Thu, May 12, 2011 at 9:41 AM, Thomas Zimmermann <t.zimmermann@uke.de> wrote:
> Am 11.05.2011 um 19:19 schrieb Nick Cox:
>
>>
>>
>> Even better, -tab, generate()- will do it for you in one line!
>>
>
>
> thx for your advice, nick.
> sorry for being a bit too imprecise.
>
> i have 2 tables: table 1 (dataset) with some variables incl. one variable
> "atc-code" with 700+ agents (14000+ rows). for counting that, the "tab,
> gen()-thing" is perfectly suitable.
>
> but: i have table 2, a specific subset of agents (200+) and their atc-code,
> one agent = one row.
>
> my working question: how many times is any of the agents in table 2
> represented in the variable atc-code in table 1.
>
> hope, i sort of disentangled the problem a bit.
>
*
*   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/


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