Statalist


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

Re: st: Re: Deleting Only Particular Observations


From   "Martin Weiss" <[email protected]>
To   <[email protected]>
Subject   Re: st: Re: Deleting Only Particular Observations
Date   Wed, 1 Jul 2009 22:51:40 +0200

<>

Dear namesake: See solution posted a couple of minutes ago. http://www.stata.com/statalist/archive/2009-07/msg00042.html


Statalisters: What is the reasoning behind the prohibition to use -by- and -in- in the same statement?

HTH
Martin
_______________________
----- Original Message ----- From: "Christian Weiß" <[email protected]>
To: <[email protected]>
Sent: Wednesday, July 01, 2009 10:47 PM
Subject: Re: st: Re: Deleting Only Particular Observations


Dear Martin,

thank's a lot - unfortunately, my Stata does not like this solution..

. by country: keep in -100/l
'in' may not be combined with 'by'






On Wed, Jul 1, 2009 at 10:40 PM, Martin Weiss<[email protected]> wrote:
<>

sort country size
by country: keep in -100/l


HTH
Martin
_______________________
----- Original Message -----
From: "Christian Weiß" <[email protected]>
To: <[email protected]>
Sent: Wednesday, July 01, 2009 10:24 PM
Subject: st: Deleting Only Particular Observations


Dear Statalist,

Variable size contains the marketcap of about 2000 firms from 11
countries (grouping var country).

I would like to keep only the 100 biggest firms (by marketcap) from
each country, and delete the residual observations.

How can I accomplish this?

Best regards
Christian
*
* 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/


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


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


*
*   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–2024 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index