Package: fewclust 0.4.3
fewclust: 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) <doi:10.1111/j.0006-341X.1999.00688.x> 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) <doi:10.1111/j.0006-341X.2001.01198.x> are the fallback. The corrections of Mancl and DeRouen (2001) <doi:10.1111/j.0006-341X.2001.00126.x> and Kauermann and Carroll (2001) <doi:10.1198/016214501753382309> are available, and the sign-flip score test of Hemerik, Goeman and Finos (2020) <doi:10.1111/rssb.12369> 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.
Authors:
fewclust_0.4.3.tar.gz
fewclust_0.4.3.zip(r-4.7-any)fewclust_0.4.3.zip(r-4.6-any)fewclust_0.4.3.zip(r-4.5-any)
fewclust_0.4.3.tgz(r-4.6-any)fewclust_0.4.3.tgz(r-4.5-any)
fewclust_0.4.3.tar.gz(r-4.7-any)fewclust_0.4.3.tar.gz(r-4.6-any)
fewclust_0.4.3.tgz(r-4.6-emscripten)
manual.pdf |manual.html✨
DESCRIPTION |NEWS
card.svg |card.png
fewclust/json (API)
| # Install 'fewclust' in R: |
| install.packages('fewclust', repos = c('https://lucavd.r-universe.dev', 'https://cloud.r-project.org')) |
Bug tracker:https://github.com/lucavd/fewclust/issues
- fc_trial - Synthetic clustered binary trial
Last updated from:2845ce1138. Checks:9 OK. Indexed: yes.
| Target | Result | Time | Files | Syslog |
|---|---|---|---|---|
| linux-devel | OK | 170 | ||
| source / vignettes | OK | 248 | ||
| linux-release | OK | 141 | ||
| macos-release | OK | 231 | ||
| macos-oldrel | OK | 272 | ||
| windows-devel | OK | 127 | ||
| windows-release | OK | 137 | ||
| windows-oldrel | OK | 151 | ||
| wasm-release | OK | 111 |
Exports:augmentfewclust_controlfit_fewclustflip_testgee_vcovglancesimulate_clustered_binarytidy
Dependencies:backportsbroomclicpp11dplyrgeepackgenericsgluelifecyclemagrittrMASSpillarpkgconfigpurrrR6rlangstringistringrtibbletidyrtidyselectutf8vctrswithr
Last update: 2026-11-03
Started: 2026-11-03
Last update: 2026-11-03
Started: 2026-11-03
Readme and manuals
Help Manual
| Help page | Topics |
|---|---|
| Synthetic clustered binary trial | fc_trial |
| Tuning constants for the fits | fewclust_control |
| Fit a model for a clustered binary outcome | fit_fewclust |
| Sign-flip score test for one coefficient | flip_test |
| Small-sample corrected sandwich variance for a GEE fit | gee_vcov |
| Predictions from a fewclust fit | predict.fewclust |
| Simulate clustered binary outcome data | simulate_clustered_binary |
| Summarise a fewclust fit | print.summary.fewclust summary.fewclust |
| Tidy, glance and augment a fewclust fit | augment.fewclust glance.fewclust tidy.fewclust tidy.fewclust_flip |
