Skip to content

distfreereg

Distribution-Free Goodness-of-Fit Testing for Regression

v1.2 · May 8, 2026 · GPL-3

Description

Implements the distribution-free goodness-of-fit regression testing procedure, introduced by Estate Khmaladze (2021, <doi:10.1007/s10463-021-00786-3>) to test whether or not the mean structure of a parametric model belongs to a specified model family. The test is implemented for general mean functions with minimal distributional assumptions as well as common models (e.g., lm, glm) with the usual model assumptions.

Downloads

CRAN

228

Last 30 days

21698th

674

Last 90 days

2.3K

Last year

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

r2u CRAN

8

Last 30 days

39

Last 90 days

128

Last year

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

autoCRAN

4

Last 7 days

13

Last 30 days

0

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 14 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE Mar 10, 2026

Code

Structure

Lines of code

14,427

Files

194

Compiled share

0%

Has compiled src

No

Language breakdown

R 3,107 (21.5%)Tests 7,182 (49.8%)Docs 2,005 (13.9%)Vignettes 2,133 (14.8%)

API

Exported functions

4

Internal functions

96

Recent export changes

v1.2−7 distfreereg.default, distfreereg.formula, distfreereg.function 4 more
v1.1+3 asymptotics, distfreereg.glm, distfreereg.lmerMod

Testing & CI

Has tests

Yes

Test-to-code ratio

2.31

testthat edition

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

Yes

Health & Security signals

Informational signals; not verdicts.

on.exit coverage

Unsafe pattern score

0

Dep constraint coverage

0%

Secret pattern count

0

Bundled 3rd-party code

2 items

Portability & License

Min R version

4.4

System requirements

C++ standard

License

GPL-3

License flags

SPDX valid, OSI approved

History

Versions

4

First release

2024-11-11

Latest release

2026-05-08

Avg cadence

226 days

Cold removal rate

100%

Dep drift

3

LOC over versions

v1.0: 41,722 LOCv1.0.1: 37,178 LOCv1.1: 13,737 LOCv1.2: 14,427 LOC

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

Dependency Network

Dependencies Reverse dependencies calculus clue lme4 distfreereg

Version History

5 tracked
updated 1.2 ← 1.1 diff May 8, 2026
new 1.1 Mar 10, 2026
updated 1.1 ← 1.0.1 diff Jul 1, 2025
updated 1.0.1 ← 1.0 diff Nov 18, 2024
new 1.0 Nov 10, 2024