Regression for Clustered Binary Outcomes with Few Clusters
Fits regression models for binary outcomes measured
repeatedly within a small number of groups (clusters), with tests and
intervals that stay calibrated with few groups and short series. The
default is the marginalized multilevel model of Heagerty (1999)
with a convergence check and
Wald statistics referred to a t distribution; generalized estimating
equations with a first-order autoregressive working correlation and the
small-sample sandwich correction of Fay and Graubard (2001)
are the fallback. The
corrections of Mancl and DeRouen (2001)
and Kauermann and Carroll (2001)
are available, and the sign-flip score
test of Hemerik, Goeman and Finos (2020) gives
a p-value for the smallest designs. The defaults follow a simulation
study of these methods. Fits take the data first, accept bare column
names and have 'broom' methods returning tibbles.