Learn R Programming

PEkit (version 1.0.0.1000)

Partition Exchangeability Toolkit

Description

Bayesian supervised predictive classifiers, hypothesis testing, and parametric estimation under Partition Exchangeability are implemented. The two classifiers presented are the marginal classifier (that assumes test data is i.i.d.) next to a more computationally costly but accurate simultaneous classifier (that finds a labelling for the entire test dataset at once based on simultanous use of all the test data to predict each label). We also provide the Maximum Likelihood Estimation (MLE) of the only underlying parameter of the partition exchangeability generative model as well as hypothesis testing statistics for equality of this parameter with a single value, alternative, or multiple samples. We present functions to simulate the sequences from Ewens Sampling Formula as the realisation of the Poisson-Dirichlet distribution and their respective probabilities.

Copy Link

Version

Install

install.packages('PEkit')

Monthly Downloads

196

Version

1.0.0.1000

License

MIT + file LICENSE

Maintainer

Ali Amiryousefi

Last Published

November 22nd, 2021

Functions in PEkit (1.0.0.1000)

abundance

Vector of frequencies of frequencies
classifier.fit

Fit the supervised classifier under partition exchangeability
two.sample.test

Two sample test for \(\psi\)
rPD

Random sampling from the Poisson-Dirichlet Distribution
mult.sample.test

Test for \(\psi\) of multiple samples
tSimLab

Simultaneously predicted labels of the test data given the training data classification.
MLEp.bsci

Bootstrap confidence interval for the MLE of \(\psi\)
is.PD

Test for the shape of the distribution
MLEp

Maximum Likelihood Estimate of \(\psi\)
sample.test

Lagrange Multiplier Test for \(\psi\)
dPD

The Poisson-Dirichlet distribution
tMarLab

Marginally predicted labels of the test data given training data classification.