Bookmark and Share

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

[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" <>
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)


. xtset site
. logit recovered i.treatment

Hope that helps!

Michael N. Mitchell
Data Management Using Stata      -
A Visual Guide to Stata Graphics -
Stata tidbit of the week         -

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:

*   For searches and help try:
*   For searches and help try:

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