Statalist The Stata Listserver


[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

st: counting and eliminating data


From   Jennifer Devine <[email protected]>
To   [email protected]
Subject   st: counting and eliminating data
Date   Wed, 25 Jan 2006 10:04:03 -0330

Can someone please set me in the right direction for coding a program to count and eliminate data if it doesn't meet a certain criteria?

I have survey data taken over 26 years and the survey area is divided into subareas. I want to only include a subarea if data was collected 13 years out of the 26 and data must have been collected 2 years of the first 5 years and 2 years of the last 5 years. If the subarea does not meet that criteria, I want Stata to drop that subarea from the analysis. At the moment, I'm having to look at everything individually and it takes several days to eliminate subareas.

Thank you,
Jennifer



Jennifer Devine
Doctoral Candidate
Memorial University of Newfoundland
St. John's, NL A1C 5S7
Canada
Tel: (709) 737-8833
Fax: (709) 737-3121

email: [email protected]
*
* 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/




© Copyright 1996–2024 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index