Skip to content

mmiCATs

Cluster Adjusted t Statistic Applications

v0.2.0 · Aug 25, 2024 · MIT + file LICENSE

Description

Simulation results detailed in Esarey and Menger (2019) <doi:10.1017/psrm.2017.42> demonstrate that cluster adjusted t statistics (CATs) are an effective method for correcting standard errors in scenarios with a small number of clusters. The 'mmiCATs' package offers a suite of tools for working with CATs. The mmiCATs() function initiates a 'shiny' web application, facilitating the analysis of data utilizing CATs, as implemented in the cluster.im.glm() function from the 'clusterSEs' package. Additionally, the pwr_func_lmer() function is designed to simplify the process of conducting simulations to compare mixed effects models with CATs models. For educational purposes, the CloseCATs() function launches a 'shiny' application card game, aimed at enhancing users' understanding of the conditions under which CATs should be preferred over random intercept models.

Downloads

CRAN

293

Last 30 days

16091st

670

Last 90 days

2.2K

Last year

Trend: +80.9% (30d vs prior 30d)

r2u CRAN

0

Last 30 days

24

Last 90 days

110

Last year

Trend: -100% (30d vs prior 30d)

autoCRAN

4

Last 7 days

11

Last 30 days

2

All-time

autoCRAN-only: this name is served only by autoCRAN, so the count is exact.

CRAN Check Status

13 OK
Show all 13 flavors
Flavor Status
r-devel-linux-x86_64-debian-clang OK
r-devel-linux-x86_64-debian-gcc OK
r-devel-linux-x86_64-fedora-clang OK
r-devel-linux-x86_64-fedora-gcc OK
r-devel-windows-x86_64 OK
r-oldrel-macos-arm64 OK
r-oldrel-macos-x86_64 OK
r-oldrel-windows-x86_64 OK
r-patched-linux-x86_64 OK
r-release-linux-x86_64 OK
r-release-macos-arm64 OK
r-release-macos-x86_64 OK
r-release-windows-x86_64 OK

Check History

OK 13 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE Jun 9, 2026
ERROR 12 OK · 0 NOTE · 0 WARNING · 1 ERROR · 0 FAILURE Jun 7, 2026
ERROR r-devel-linux-x86_64-debian-gcc

tests

Running ‘testthat.R’ [0s/0s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  Fatal error: cannot create 'R_TempDir'
OK 14 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE Mar 10, 2026

Code intelligence has not been computed for this package yet.

Code

Structure

Lines of code

3,960

Files

99

Compiled share

0%

Has compiled src

No

Language breakdown

R 2,538 (64.1%)Tests 463 (11.7%)Docs 959 (24.2%)

API

Exported functions

7

Internal functions

18

Recent export changes

v0.2.0+2 KenRCATs, kenward_roger
v0.1.0+5 CloseCATs, cluster_im_glmRob, cluster_im_lmRob +2 more

Testing & CI

Has tests

Yes

Test-to-code ratio

0.18

testthat edition

3

CI present

No

CI type

[]

PR gated

No

Docs

Return-value doc rate

100%

\dontrun example ratio

0%

Roxygen coverage

100%

Has pkgdown

No

NEWS present

No

Health & Security signals

Informational signals; not verdicts.

on.exit coverage

0%

Unsafe pattern score

15

Dep constraint coverage

0%

Secret pattern count

0

Bundled 3rd-party code

2 items

Portability & License

Min R version

System requirements

C++ standard

License

MIT + file LICENSE

License flags

SPDX valid, OSI approved

History

Versions

3

First release

2024-02-16

Latest release

2024-08-26

Avg cadence

96 days

Cold removal rate

Dep drift

2

LOC over versions

v0.1.0: 2,620 LOCv0.1.1: 2,644 LOCv0.2.0: 3,960 LOC

Per-file churn detail lives in the source pipeline: https://github.com/r-observatory/cran-code-metrics.

Dependency Network

Dependencies Reverse dependencies broom broom.mixed clusterSEs DT lmerTest MASS mmcards pool robust robustbase RPostgres shiny shinythemes mmiCATs

Version History

4 tracked
new 0.2.0 Mar 10, 2026
updated 0.2.0 ← 0.1.1 diff Aug 25, 2024
updated 0.1.1 ← 0.1.0 diff Feb 20, 2024
new 0.1.0 Feb 15, 2024