probInterval {imptree} | R Documentation |
Various method around IPIntervals
Description
Calculation of probability intervals, and their maximal and minimal entropy
Usage
probInterval(table, iptype = c("IDM", "NPI", "NPIapprox"),
entropymin = TRUE, entropymax = TRUE, correction = c("no",
"strobl", "abellan"), s = 1)
Arguments
table |
integer vector of absolute frequencies |
iptype |
method for calculating the probability
intervals of |
entropymin |
Calculation of one distribution with minimal
entropy, including the actual value of the minimal entropy
(default: |
entropymax |
Calculation of the distribution with maximal
entropy, including the actual value of the maximal entropy
(default: |
correction |
Entropy correction to be carried out,
ignorned if |
s |
Hyperparamter of the IDM ( |
Value
A list with 5 named entries:
probint |
matrix with 3 rows and |
maxEntDist |
The (unique) probability distribution with maximal entropy |
maxEntCorr |
The value of the (corrected) maximal entropy |
minEntDist |
A probability distribution with minimal entropy, as it is not necessarily unqiue there may be others |
minEntCorr |
The value of the (corrected) minimal entropy |
Author(s)
Paul Fink Paul.Fink@stat.uni-muenchen.de
See Also
Examples
## Artificial vector of absolute frequencies
obs <- c(a = 1,b = 2, c = 10, d = 30, e = 5)
## probability interval by NPI, including only information on the
## mininum entropy distribution, using no entropy correction
probInterval(obs, iptype = "NPI", entropymax = FALSE)
## probability interval by IDM, including information on the
## minimum and maximum entropy distribution with s = 2 and correction
## according to 'strobl'
probInterval(obs, iptype = "IDM", correction = "strobl", s = 2)