Notice: On April 23, 2014, Statalist moved from an email list to a forum, based at statalist.org.
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: st: routine for matching of a str-variable
From
Nick Cox <[email protected]>
To
[email protected]
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 <[email protected]> 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/