Statalist The Stata Listserver


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

st: defining selection criteria


From   "Richard Pitman" <[email protected]>
To   "Stata list" <[email protected]>
Subject   st: defining selection criteria
Date   Thu, 29 Mar 2007 09:49:26 +0100

I have a dataset like the following

Id	week	class	treatment
1	0	2	a
1	8	3	a
1	12	3	a
2	0	3	b
2	8	3	b
2	12	4	b
3	0	3	a
3	8	3	a
3	12	2	a

I would like to cross tabulate treatment against class at week 12, ~but~
only for those patients in class 3 at week 0. I am not sure how to achieve
the last criteria.

Any suggestions gratefully received.

Richard Pitman

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