Bookmark and Share

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]

dropping of observations [was: Re: st: From: Muhammad Ramzan <[email protected]>]


From   Nick Cox <[email protected]>
To   "[email protected]" <[email protected]>
Subject   dropping of observations [was: Re: st: From: Muhammad Ramzan <[email protected]>]
Date   Sat, 18 Jan 2014 10:56:13 +0000

Please give informative titles to your postings. You did not give the
command you used but

keep if inrange(year, 1940, 1945)

is one command that might be what you want. However, if "obs" means
"observe" then something like

browse if inrange(year, 1940, 1945)

list if inrange(year, 1940, 1945)

might make more sense.

Nick
[email protected]

On 18 January 2014 09:51,  <[email protected]>

> i have working on panel data and have to obs if the values of the
> years are from 1940 to 1945.
>
> drop if year  != 1940 to 1945
>
> I am using the following command , this command is dropping all the
> observation.
*
*   For searches and help try:
*   http://www.stata.com/help.cgi?search
*   http://www.stata.com/support/faqs/resources/statalist-faq/
*   http://www.ats.ucla.edu/stat/stata/


© Copyright 1996–2018 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   Site index