Statistical Functions for Probability Distributions and Regression
Overview
A collection of miscellaneous statistical functions for probability distributions: 'dbern()', 'pbern()', 'qbern()', 'rbern()' for the Bernoulli distribution, and 'distr2name()', 'name2distr()' for distribution names; probability density estimation: 'densityfun()'; most frequent value estimation: 'mfv()', 'mfv1()'; other statistical measures of location: 'cv()' (coefficient of variation), 'midhinge()', 'midrange()', 'trimean()'; construction of histograms: 'histo()', 'find_breaks()'; calculation of the Hellinger distance: 'hellinger()'; use of classical kernels: 'kernelfun()', 'kernel_properties()'; univariate piecewise-constant regression: 'picor()'.
Bug fixes
- Fix bug in
prune(). - Now
hellinger()returns the Hellinger distance, not the square of it (Issue #1, thanks to benjones13).
Features
- Use
model.frame()to improve the way formulas are processed inpicor(). - Now
mfv()is powered by a functiontableNA()and returns a factor with the same levels asx, whenxis itself a factor. - In
mfv()the argumentna.rmis soft-deprecated (so still accepted for now, with a message thrown); the default argument is now calledna_rm. - Add various statistical functions:
cv()(coefficient of variation),midhinge(),midrange(),trimean(). - Add
histo()to compute a histogram andfind_breaks()to give breakpoints just likeMASS::truehist()does.
From NEWS.md in the release
Install
Health
- OK13 OK2026-08-04
- NOTE12 OK, 1 NOTE2026-08-01
- OK13 OK2026-06-08
- NOTE12 OK, 1 NOTE2026-06-07
- OK12 OK2026-04-25
Show 1 earlier changeHide 1 earlier change
- NOTE11 OK, 3 NOTE2026-03-10
Documentation
- Help pages
- 20 (1 internal)
- Examples that run
- 90%9 run in a plain check · 1 never run
- Exported functions with examples
- 44%
- Documented parameters
- 98%
- Return-value docs
- 89%
- Help pages citing references
- 35%
Downloads
Repository
- PRs merged (all time)
- 100%
- Median days to close, 50 most recently updated closed issues
- 27
- Median days to close, 50 most recently updated closed PRs
- 0
Stars over time
Issues over time
2 development-tooling and community-health practices detected across 2 families in the upstream repository
Checks run against github.com/paulponcet/statip on 2026-10-11.
Dependencies
Installing statip adds 1 package (1 with compiled code, 727 KB of source tarballs). Heaviest: clue 727 KB.
Code & Tests
People & History
Pick two releases to compare their code metrics.
- RR 4.6.0 released · 2026-04-24
- RR 4.5.0 released · 2025-04-11
- RR 4.4.0 released · 2024-04-24
- RR 4.3.0 released · 2023-04-21
- RR 4.2.0 released · 2022-04-22
- RR 4.1.0 released · 2021-05-18
- RR 4.0.0 released · 2020-04-24
- 0.2.3Latest2019-11-17 · current release · diff ↗ ·
added 7 exports
cv, find_breaks, histo, midhinge, midrange, tableNA, trimean - RR 3.6.0 released · 2019-04-26
- 0.2.0
- RR 3.5.0 released · 2018-04-23
- 0.1.52017-11-05 · diff ↗
- RR 3.4.0 released · 2017-04-21
- 0.1.42017-01-29
- RR 3.3.0 released · 2016-05-03
Package metadata
- First published
- 2017-01-29
- Total releases
- 4 / 9 yrs
- License
- GPL-3 OSI
- Minimum R
- ≥ 3.1.3
- Download size
- 26 KB
Cite
Cite this package
Run in R for the authors' preferred citation:
citation("statip")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.
From data release v2026-10-18, which the citation names so these numbers can be found later. More on citing and the projects behind them.