Stata The Stata listserver
[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

st: -robust cluster()- with an -if-


From   "Hixson, Eric" <[email protected]>
To   [email protected]
Subject   st: -robust cluster()- with an -if-
Date   Fri, 17 Sep 2004 10:28:40 -0400

I am using the -robust cluster()- option with -logit- to address lack of independence of observations.  My question has to do with how Stata performs the operation when an -if- statement is also included.

I have a dataset composed of subjects (id) that may have multiple observations.  For each observation, the subject could have one of two levels of a certain characteristic (type = 0/1).  

If I specify "logit outcome var2 if type==1, robust cluster(id)", would observations for a given subject where type==0 be included in the determination of the robust standard errors [per the -cluster(id) statement] or would the sample first be limited by the -if type==1- before any modeling is done?

In other words, does -if- supercede -cluster()- or visa versa?  If this should be obvious, go easy on the caning and I'll keep reading!

Eric Hixson

------------------------------------------------------------------------------
Confidentiality Note:  This message is intended for use only by the individual or entity to which it is addressed and may contain information that is privileged, confidential, and exempt from disclosure under applicable law.  If the reader of this message is not the intended recipient or the employee or agent responsible for delivering the message to the intended recipient, you are hereby notified that any dissemination, distribution or copying of this communication is strictly prohibited.  If you have received this communication in error,  please contact the sender immediately and destroy the material in its entirety, whether electronic or hard copy.  Thank you.
------------
Visit us online at our award-winning www.clevelandclinic.org for a complete listing of Cleveland Clinic services, staff and locations from one of the country's leading hospitals.
==============================================================================


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