ModStatR
1.4.2Statistical Modelling in Action with R
Overview
Datasets and functions for the book "Modélisation statistique par la pratique avec R", F. Bertrand, E. Claeys and M. Maumy-Bertrand (2019, ISBN:9782100793525, Dunod, Paris). The first chapter of the book is dedicated to an introduction to the R statistical software. The second chapter deals with correlation analysis: Pearson, Spearman and Kendall simple, multiple and partial correlation coefficients. New wrapper functions for permutation tests or bootstrap of matrices of correlation are provided with the package. The third chapter is dedicated to data exploration with factorial analyses (PCA, CA, MCA, MDA) and clustering. The fourth chapter is dedicated to regression analysis: fitting and model diagnostics are detailed. The exercises focus on covariance analysis, logistic regression, Poisson regression, two-way analysis of variance for fixed or random factors. Various example datasets are shipped with the package: for instance on pokemon, world of warcraft, house tasks or food nutrition analyses.
Install
Health
- OK2026-04-2512 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE
- NOTE2026-03-1011 OK · 3 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE
Documentation
- Examples that run
- 100%
- Documented parameters
- 100%
- Return-value docs
- 92%
- References docs
- 3%
Downloads
Repository
Stars over time
Forks over time
Releases over time
Repository practices
3 development-tooling and community-health practices detected across 3 families in the upstream repository
Checks run against github.com/fbertran/modstatr on 2026-07-19.
Dependencies
Nothing depends on this yet.
Code & Tests
- Cyclomatic complexity
- 2.0 median / 4 max
- Test cases
- 22 / 0.34 per code line
Test coverage
Line coverage
94%
Expression
95.0%
Tests / Examples
93.9% / 96% ex
Functions
12 12 exported
Complexity
2.3 avg / 4 max
Call network
12 nodes / 2 edges
Call graph
Open call graph →Lowest coverage
12 functions| Function | Cyclo | Coverage |
|---|---|---|
| Gauss2F1 exp | 2 | 67% |
| Gauss2F1gsl exp | 2 | 67% |
| my.confidence.region exp | 4 | 69% |
| boot.mcor.ic exp | 3 | 100% |
| corrdist exp | 1 | 100% |
| corrdistapprox exp | 1 | 100% |
Datasets
| Name | Class | Rows × Cols | Also ships in |
|---|---|---|---|
| d_macdo | data.frame | 260 × 24 | – |
| d_wow | data.frame | 160 × 12 | – |
| data_event | data.frame | 208,446 × 40 | – |
| poke | data.frame | 800 × 13 | – |
People & History
7 releases. Pick two to compare their code metrics. R releases are shown for context.
- 1.4.2Latest
- RR 4.6.0 released · 2026-04-24
- 1.4.12025-09-13 · diff ↗
- 1.4.02025-08-28 · diff ↗
- RR 4.5.0 released · 2025-04-11
- RR 4.4.0 released · 2024-04-24
- RR 4.3.0 released · 2023-04-21
- 1.3.32023-03-24 · diff ↗
- 1.3.22022-11-28 · diff ↗
- RR 4.2.0 released · 2022-04-22
- RR 4.1.0 released · 2021-05-18
- 1.3.12021-03-14 · diff ↗
- RR 4.0.0 released · 2020-04-24
- 1.3.02019-09-30
- RR 3.6.0 released · 2019-04-26
Package metadata
- First published
- 2019-09-30
- Total releases
- 7 / 7 yrs
- License
- GPL-3 OSI
- Minimum R
- ≥ 3.5.0
- Bundled data
- 2.2 MB / 19 files
- Download size
- 2.3 MB
- Installed size
- not tracked yet
- With dependencies
- not tracked yet