# Statistical Functions for Probability Distributions and Regression

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()'.

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(); calculation of the Hellinger distance: hellinger(); use of classical kernels: kernelfun(), kernel_properties().

## Installation

You can install 'statip' from GitHub with:

# statip 0.2.0

• Function 'picor()' added for univariate piecewise-constant regression.

# statip 0.1.9

• Function 'if_else()' from package 'dplyr' is no longer used since it currently inconsistently transforms a matrix into a vector; the base 'ifelse()' is used instead.

# statip 0.1.8

• Function 'predict.kmeans()' added (with dependency to package 'clue').

# statip 0.1.6

• '...' argument added in 'mfv()' and 'mfv1()' (useful for the subsequent call of these functions within package 'modeest').

# statip 0.1.5

• 'mfv()' was not working with factors.

# statip 0.1.4

• Change 'mfv()' to better take account of missing values.

# statip 0.1.3

• Update authors list.

# statip 0.1.2

• Small updates before CRAN submission.

# statip 0.1.1

• Functions 'mfv()' and 'mfv1()' for the mode (most frequent value) found in a vector.

# Reference manual

install.packages("statip")

0.2.3 by Paul Poncet, a year ago

https://github.com/paulponcet/statip

Report a bug at https://github.com/paulponcet/statip/issues

Browse source code at https://github.com/cran/statip

Authors: Paul Poncet [aut, cre] , The R Core Team [aut, cph] (C function 'BinDist' copied from package 'stats') , The R Foundation [cph] (C function 'BinDist' copied from package 'stats') , Adrian Baddeley [ctb] (C function 'BinDist' copied from package 'stats')

Documentation:   PDF Manual