Bookmark and Share

Notice: On April 23, 2014, Statalist moved from an email list to a forum, based at statalist.org.


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: st: Testing dependence in a 2x2 table for clustered observations


From   "Michael N. Mitchell" <[email protected]>
To   [email protected]
Subject   Re: st: Testing dependence in a 2x2 table for clustered observations
Date   Wed, 25 Aug 2010 22:13:13 -0700

How about something like this...

. logit recovered i.treatment, cluster(site)

or

. xtset site
. logit recovered i.treatment

Hope that helps!

Michael N. Mitchell
Data Management Using Stata      - http://www.stata.com/bookstore/dmus.html
A Visual Guide to Stata Graphics - http://www.stata.com/bookstore/vgsg.html
Stata tidbit of the week         - http://www.MichaelNormanMitchell.com



On 2010-08-25 12.59 AM, Hoogendoorn, Adriaan wrote:
Dear Statalisters,

I have a very simple 2x2 table Treatment (A or B) versus Recovered (Yes or No).. I would like to test the dependence in the table using a chi square test. However, the observations are not independent but clustered: a multilevel design with patients clustered in approximately twenty "treatment sites".

My question is, in order to take the clustering into account, do I need to use a technique like random coefficient logistic regression? This seems like heavy machinery to solve a simple problem with only a minor complication?

Kind regards,
Adriaan Hoogendoorn
GGZ inGeest, Amsterdam

Dit e-mailbericht is uitsluitend bestemd voor de geadresseerde. Als dit bericht niet voor u bestemd is, wordt u verzocht dit aan de afzender te melden en het bericht te vernietigen. Het is niet toegestaan de inhoud van dit bericht verder te verspreiden of te gebruiken. Voor meer informatie over GGZ inGeest: www.ggzingeest.nl.


*
*   For searches and help try:
*   http://www.stata.com/help.cgi?search
*   http://www.stata.com/support/statalist/faq
*   http://www.ats.ucla.edu/stat/stata/
*
*   For searches and help try:
*   http://www.stata.com/help.cgi?search
*   http://www.stata.com/support/statalist/faq
*   http://www.ats.ucla.edu/stat/stata/


© Copyright 1996–2018 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   Site index