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]
st: problem with commands
From
"Vassilopoulos Achilleas" <[email protected]>
To
<[email protected]>
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 : [email protected]
*
* 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/