Skip to content

chandwich

1.1.6Package record

Chandler-Bate Sandwich Loglikelihood Adjustment

4packages depend
25.8Kdownloads / year
89.3%test coverage
13/13flavors OK

Overview

About

Performs adjustments of a user-supplied independence loglikelihood function using a robust sandwich estimator of the parameter covariance matrix, based on the methodology in Chandler and Bate (2007) doi:10.1093/biomet/asm015. This can be used for cluster correlated data when interest lies in the parameters of the marginal distributions or for performing inferences that are robust to certain types of model misspecification. Functions for profiling the adjusted loglikelihoods are also provided, as are functions for calculating and plotting confidence intervals, for single model parameters, and confidence regions, for pairs of model parameters. Nested models can be compared using an adjusted likelihood ratio test.

Changes in 1.1.6

Bug fixes and minor improvements

  • Create the help file for the package correctly, with alias chandwich-package.
  • In plot.confint() confidence limits are now added to the horizontal axis in cases where only one interval is plotted.
  • Activated 3rd edition of the testthat package

From NEWS.md in the release

Install

Health

CRAN checks
13OK
Slowest check: 3.8 min · r-oldrel-windows-x86_64
Status changes
  • OK13 OK2026-08-05
  • NOTE12 OK, 1 NOTE2026-08-01
  • OK14 OK2026-03-10
Advisories

none known

Documentation

In release 1.1.6
READMEYes · 343 wordsVignettesYes · 1 · dynamicNEWSYes · 100% structured · mentions 1.1.6Citation fileNoWebsiteYes · pkgdown
Help pages
22includes a package overview page
Examples that run
100%9 run in a plain check
Exported functions with examples
100%
Documented parameters
77%
Return-value docs
100%
Help pages citing references
32%

Downloads

25.8K
CRAN downloads in the past year
Rank #2,791 · ~71/day · ~2.1K/mo
Daily download trend is not available in this view yet.
1.8K30 days
5.3K90 days
25.8K1 year
Compare downloads with other packages →
Also on325 r2u21 autocran61 c2d4u

Repository

4Stars
1Forks
0Open issues
0Open PRs
8Releases
439Commits
1Commit identities
independence-loglikelihoodsandwichrobustmlestatistical-inferenceclustered-dataclusterscomposite-likelihood
License file reads as GPL-3.0 · 439 commits · Last activity 2026-08-21
Responsiveness
How these are sampled
PRs merged (all time)
0%
Median days to close, 50 most recently updated closed issues
not measured
Median days to close, 50 most recently updated closed PRs
618

Stars over time

2023-08-26 · 42026-07-07 · 4
PracticesBeta

8 development-tooling and community-health practices detected across 5 families in the upstream repository

Checks run against github.com/paulnorthrop/chandwich on 2026-10-22.

Continuous integration (2)
GitHub ActionsR CMD check workflow

The R CMD check workflow runs on Linux, macOS and Windows, and on R-devel

Docs source (3)
README.Rmdpkgdown

GitHub Pages site last deployed 2026-08-21

Coverage (1)
Coverage reporting
CRAN release process (1)
cran-comments.md
Show all practicesHide 1 practice
Lint, format, editor (1)
RStudio project
How this is detected·Detection ruleset v4 (2026-10-20)

Dependencies

Declared dependencies
5 external dependencies (excludes base and recommended)

Installing chandwich adds 1 package (0 with compiled code, 74 KB of source tarballs). Heaviest: numDeriv 74 KB.

Depends (1)
R >= 3.3.0
Imports (5)
graphicsmethodsnumDerivstatsutils
LinkingTo (0)
none
Enhances (0)
none
Reverse dependencies
4direct
4indirect
Imports 4
Depends, Imports or LinkingTo, most downloaded first

Datasets

People & History

People (2)
Author, Maintainer since 1.0.0 (2018), Copyright holder
Author, Copyright holder
Listed in earlier versions (3)
Show 3 peopleHide 3 people
no longer listed · 1.0.0 to 1.1.0
Paul J.
no longer listed · 1.0.0 to 1.1.6
Richard E.
no longer listed · 1.1.1 to 1.1.6
Releases (8)

Pick two releases to compare their code metrics.

  • R
    R 4.6.0 released · 2026-04-24
  • R
    R 4.5.0 released · 2025-04-11
  • R
    R 4.4.0 released · 2024-04-24
  • 1.1.6Latest
    record
    2023-08-25 · current release · diff ↗
  • R
    R 4.3.0 released · 2023-04-21
  • R
    R 4.2.0 released · 2022-04-22
  • 1.1.5
    record
    2021-10-30 · diff ↗
  • 1.1.4
    record
    2021-07-02 · diff ↗
  • R
    R 4.1.0 released · 2021-05-18
  • 1.1.3
    record
    2020-11-07 · diff ↗
  • R
    R 4.0.0 released · 2020-04-24
  • 1.1.2
    record
    2019-07-11 · diff ↗
  • R
    R 3.6.0 released · 2019-04-26
  • 1.1.1
    record
    2018-11-28 · diff ↗
  • 1.1.0
    record
    2018-09-10 · diff ↗
  • R
    R 3.5.0 released · 2018-04-23
Show 2 earlier eventsHide 2 earlier events
  • 1.0.0
    record
    2018-03-06
  • R
    R 3.4.0 released · 2017-04-21

Package metadata

First published
2018-03-06
Total releases
8 / 8 yrs
License
GPL (>= 2) OSI
Minimum R
≥ 3.3.0
Bundled data
0.6 KB / 2 files
Download size
110 KB

Cite

Cite this package

Run in R for the authors' preferred citation:

citation("chandwich")
Northrop, P. J., & Chandler, R. E. (2023). chandwich: Chandler-Bate Sandwich Loglikelihood Adjustment (Version 1.1.6) [Computer software]. https://doi.org/10.32614/CRAN.package.chandwich

This package has no citation file, so citation() returns this entry built from DESCRIPTION.

Cite the R Observatory

For a number measured here: a download total, a coverage figure, an archival date.

APA

Balamuta, J. J. (2026). R Observatory: Metrics for chandwich version 1.1.6 [Data set]. HJJB, LLC. Data release v2026-10-23. https://doi.org/10.5281/zenodo.21843040

From data release v2026-10-23, which the citation names so these numbers can be found later. More on citing and the projects behind them.

Report a problem with this page →

Privacy choices

These apply to this browser and are stored on this device only. Nothing about your choice is sent to us.

Read the privacy policy