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]

st: problem with commands


From   "Vassilopoulos Achilleas" <vassilopoulos.statalist@gmail.com>
To   <statalist@hsphsun2.harvard.edu>
Subject   st: problem with commands
Date   Mon, 13 Sep 2010 18:22:13 +0300

Chrysa - the only thing that differs between what you are writing in a, b, c
and the commands is the "but they differ in the 3rd digit" in c. 
I have not incorporated this part in the commands since I didn't see any
sic_mother being the exact same with sic_sub in the piece of data you've
posted in your very first e-mail. I'm sorry if this was the reason for your
trouble. 
Anyway, following is my suggestion but keep in mind that it will make a
difference only if you have any subsidiaries with the same sic as their
mothers (in all three digits):


replace this command :

count if (year_inc_sub<=`y') & (twosic_moth==twosic_sub)

with that one:

count if (year_inc_sub<=`y') & (twosic_moth==twosic_sub) &
(sic_sub!=sic_mother)

and leave everything else unchanged.

If you still get the same results (i.e. 3 for all observations), I would
strongly recommend that you carefully examine your data. Do some
calculations by hand to make sure that it is not indeed 3 for all.

Hope this helps,
_____________ - _______________

Achilleas Vassilopoulos

Agricultural University of Athens,
Dept. of Agricultural Economics and Rural Development, Lab. of Political
Economy and European Integration.
Iera Odos 75, 11855, Athens, Greece

Tel: (+30) 210-5294726
Fax: (+30) 2105294786
e-mail : avassilopoulos.aua@gmail.com  




*
*   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