chandwich
1.1.6Chandler-Bate Sandwich Loglikelihood Adjustment
Overview
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.
Install
Health
- OK2026-03-1014 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE
Documentation
- Examples that run
- 100%
- Documented parameters
- 77%
- Return-value docs
- 100%
- References docs
- 32%
Downloads
Repository
Stars over time
Forks over time
Releases over time
PRs over time
Repository practices
4 development-tooling and community-health practices detected across 4 families in the upstream repository
Checks run against github.com/paulnorthrop/chandwich on 2026-07-19.
Dependencies
Code & Tests
- Cyclomatic complexity
- 8.0 median / 73 max
- Test cases
- 103 / 0.31 per code line
Test coverage
Line coverage
89%
Expression
88.7%
Tests / Examples
89.3% / 76% ex
Functions
19 6 exported
Complexity
15.6 avg / 73 max
Call network
19 nodes / 2 edges
Call graph
Open call graph →Lowest coverage
19 functions| Function | Cyclo | Coverage |
|---|---|---|
| print.chandwich | 2 | 0% |
| print.summary.chandwich | 2 | 0% |
| anova.chandwich | 10 | 69% |
| print.compmod | 8 | 79% |
| coef.chandwich | 3 | 83% |
| logLik.chandwich | 2 | 86% |
Datasets
| Name | Class | Rows × Cols | Also ships in |
|---|---|---|---|
| owtemps | data.frame | 80 × 2 | – |
People & History
8 releases. Pick two to compare their code metrics. R releases are shown for context.
- RR 4.6.0 released · 2026-04-24
- RR 4.5.0 released · 2025-04-11
- RR 4.4.0 released · 2024-04-24
- 1.1.6Latest
- RR 4.3.0 released · 2023-04-21
- RR 4.2.0 released · 2022-04-22
- 1.1.52021-10-30 · diff ↗
- 1.1.42021-07-02 · diff ↗
- RR 4.1.0 released · 2021-05-18
- 1.1.32020-11-07 · diff ↗
- RR 4.0.0 released · 2020-04-24
- 1.1.22019-07-11 · diff ↗
- RR 3.6.0 released · 2019-04-26
- 1.1.12018-11-28 · diff ↗
- 1.1.02018-09-10 · diff ↗
- RR 3.5.0 released · 2018-04-23
Show 2 earlier events
- 1.0.02018-03-06
- RR 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
- Installed size
- not tracked yet
- With dependencies
- not tracked yet