[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]
Re: st: resticting the sample?
Your can use preserve/restore to do this:
keep if age<40
On Wed, 6 Oct 2004, Shuaizhang Feng wrote:
> Dear all:
> I want to restrict my sample first and then use the
> resticted sample in my regressions. Is there a compact
> way to do this.
> for example, I want to run regression on age<40. but I
> don't want to add "if age<40" for every regressions I
> do, as it would be too long ( I have a bunch of other
> stuffs). is there an alternative way to do this?
> Thanks a lot in advance.
> Do you Yahoo!?
> Declare Yourself - Register online to vote today!
> * For searches and help try:
> * http://www.stata.com/support/faqs/res/findit.html
> * http://www.stata.com/support/statalist/faq
> * http://www.ats.ucla.edu/stat/stata/
Dimitriy V. Masterov
Center for Social Program Evaluation
1155 East 60th St. Room 038
Chicago, IL 60637
1312 East 53rd St., Apt.309
Chicago, IL 60615
* For searches and help try: