开发者

What R packages are available for binary data that is both correlated and clustered?

开发者 https://www.devze.com 2022-12-19 10:59 出处:网络
I\'m working on a project now that\'s rather unlike anything I\'ve done before.I have two tests with binary results that will be administered to the same sample, which is drawn from a clustered popula

I'm working on a project now that's rather unlike anything I've done before. I have two tests with binary results that will be administered to the same sample, which is drawn from a clustered population (i.e., some subjects will be from the same family). I'd like to compare proportions of positive test results, but the clustering makes McNemar's 开发者_C百科test inappropriate so I've been reading up on alternative approaches. The two main routes seem to be 1) the clustering-adjusted McNemar alternatives by Rao and Scott (1992), Eliasziw and Donner (1991), and Obuchowski (1998), and 2) GEE.

Do you know of any implementations of the Rao-Obuchowski lineage in R (or, I suppose, SAS)? GEE is easy to find, but have you had a positive or negative experience with any particular packages? Is there another route to analyzing these data that I'm completely missing?


You could always just use a clustered bootstrap. Resample across families, which you believe are independent. That is, keep families together when you resample. Compute p2 - p1 for each sample. After 1000 iterations or so, compute the upper and bottom 2.5% quantiles. This will give you a bootstrapped 95% confidence interval. Alternatively compute the fraction of samples above zero, or whatever your hypothesis is. The procedure should have good pretty good properties unless the number of families is small.

It's probably easiest to do this by hand in R rather than relying on any package.


Check out the survey package: it is designed to take into account correlations induced by clustered sampling.


Have you already checked the CorrBin package in R?
It is for analysis of correlated binary data, there is a paper named: Using the CorrBin package for nonparametric analysis of correlated binary data by Szabo, it includes the Rao-Scott, stochastic ordering and three versions of a GEE-based test.


The clust.bin.pair package for clustered binary matched-pair data was recently published to CRAN.

It contains implementations of Eliasziw and Donner (1991) and Obuchowski (1998), as well as two more recent tests in the same family Durkalski (2003) and Yang (2010).

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号