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

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


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

Thanks for the clarification.
Eric

-----Original Message-----
From: [email protected]
[mailto:[email protected]]On Behalf Of Nick Cox
Sent: Friday, September 17, 2004 10:37 AM
To: [email protected]
Subject: st: RE: -robust cluster()- with an -if-


In general an -if- condition in Stata means 
that all observations not meeting 
that condition are ignored, absolutely. 

There is no question of anything superseding anything 
else, or vice versa. 

Nick 
[email protected] 

Hixson, Eric
 
> 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!

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


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