Package: contingency 0.1.0

contingency: Discrete Multivariate Probability Distributions

Provides an object class for dealing with many multivariate probability distributions at once, useful for simulation.

Authors:Robin Evans [aut, cre]

contingency_0.1.0.tar.gz
contingency_0.1.0.zip(r-4.5)contingency_0.1.0.zip(r-4.4)contingency_0.1.0.zip(r-4.3)
contingency_0.1.0.tgz(r-4.4-any)contingency_0.1.0.tgz(r-4.3-any)
contingency_0.1.0.tar.gz(r-4.5-noble)contingency_0.1.0.tar.gz(r-4.4-noble)
contingency_0.1.0.tgz(r-4.4-emscripten)contingency_0.1.0.tgz(r-4.3-emscripten)
contingency.pdf |contingency.html
contingency/json (API)

# Install 'contingency' in R:
install.packages('contingency', repos = c('https://rje42.r-universe.dev', 'https://cloud.r-project.org'))

Peer review:

Bug tracker:https://github.com/rje42/contingency/issues

On CRAN:

4.00 score 5 scripts 237 downloads 28 exports 1 dependencies

Last updated 2 months agofrom:a0ffd9221c. Checks:OK: 1 WARNING: 6. Indexed: yes.

TargetResultDate
Doc / VignettesOKNov 05 2024
R-4.5-winWARNINGNov 05 2024
R-4.5-linuxWARNINGNov 05 2024
R-4.4-winWARNINGNov 05 2024
R-4.4-macWARNINGNov 05 2024
R-4.3-winWARNINGNov 05 2024
R-4.3-macWARNINGNov 05 2024

Exports:as_tablescapplycheckCIconditionalconditional2dtab_direntropyinteractionInfinterventionis_revis_tablesklmarginmargin2multiInfmutualInfntablesperm_dimrcondProbMatrepTablesrprobMatrtab_dirtablestbindtdimtdim<-tdimnamestdimnames<-

Dependencies:rje

Tables

Rendered fromtables.Rmdusingknitr::rmarkdownon Nov 05 2024.

Last update: 2024-06-05
Started: 2016-08-28

Readme and manuals

Help Manual

Help pageTopics
Subset object of class tables[.tables
Permute dimensions of tablesaperm.tables
As tablesas_tables
Convert tables into arrayas.array.tables
Convert tables into matrixas.matrix.tables
Apply function over tablescapply
Check conditional independencecheckCI checkCI.array checkCI.tables
Calculate entropy of discrete distributionentropy entropy.array entropy.default entropy.tables
Interaction informationinteractionInf interactionInf.default
Test if tables object is reversedis_rev
Test object is a collection of tablesis_tables
Kullback-Leibler Divergencekl kl.default kl.tables
Get margin of a table or tablesconditional conditional2 intervention margin margin2
Get the marginal distributionsconditional.tables conditional2.tables intervention.tables margin.tables
MultiinformationmultiInf multiInf.default multiInf.tables
(Conditional) mutual informationmutualInf mutualInf.default mutualInf.tables
Number of tablesntables
Permute indices for variable 'k'perm_dim
Print tablesprint.tables
Turn distributions into tablesrepTables
Generate matrix of (conditional) probability distributionsrcondProbMat rprobMat
Wrappers for Dirichlet distribution over a tabledtab_dir rtab_dir tab_dir
Create blank tablestables
Bind tables of the same dimensiontbind
Dimension of distributions over contingency tablestdim tdim<-
Dimension names for distributions over contingency tablestdimnames tdimnames<-