Package: MCARtest 1.3

Thomas B. Berrett

MCARtest: Optimal Nonparametric Testing of Missing Completely at Random

Provides functions for carrying out nonparametric hypothesis tests of the MCAR hypothesis based on the theory of Frechet classes and compatibility. Also gives functions for computing halfspace representations of the marginal polytope and related geometric objects.

Authors:Thomas B. Berrett [aut, cre], Alberto Bordino [aut], Danat Duisenbekov [aut], Sean Jaffe [aut], Richard J. Samworth [aut]

MCARtest_1.3.tar.gz
MCARtest_1.3.tar.gz(r-4.7-arm64)MCARtest_1.3.tar.gz(r-4.7-x86_64)MCARtest_1.3.tar.gz(r-4.6-arm64)MCARtest_1.3.tar.gz(r-4.6-x86_64)
MCARtest_1.3.tgz(r-4.6-emscripten)
manual.pdf |manual.html
card.svg |card.png
MCARtest/json (API)

# Install 'MCARtest' in R:
install.packages('MCARtest', repos = c('https://cran.r-universe.dev', 'https://cloud.r-project.org'))
Uses libs:
  • c++– GNU Standard C++ Library v3

On CRAN:

Conda:

This package does not link to any Github/Gitlab/R-forge repository. No issue tracker or development information is available.

cpp

1.00 score 3 scripts 198 downloads 34 exports 51 dependencies

Last updated from:c628521557. Checks:4 NOTE, 2 OK. Indexed: yes.

TargetResultTimeFilesSyslog
linux-devel-arm64NOTE140
linux-devel-x86_64NOTE145
source / vignettesOK199
linux-release-arm64NOTE135
linux-release-x86_64NOTE151
wasm-releaseOK119

Exports:AmatrixAmatrixSparseaMatrixSparseRevLexavCimprovedcol_indexcolVectorcomputeRcomputeR.regConsMinkSumHrepcorrCompTestCsimpleEMiterationEquivalenceClassFuchsTestget_SigmaSInconsMinkSumHrepinfoSinfoS2little_testloglik0loglik1MMargPolyHrepmargProjmeanConsTestMLEProjectionTestRindexRindexDualRoundErrorsrow_indexVvarConsTest

Dependencies:ADGofTestbackportscheckmatecliclustercmprskcolorspacecopuladata.tabledplyrEpietmgenericsgluegslgtoolshighslatticelifecyclelpSolvemagrittrMASSMatrixmgcvmissMethodsmvtnormnlmenormnumDerivpcaPPpillarpkgconfigplyrpracmapsplineR6rbibutilsrcddRcppRcppArmadilloRcsdpRdpackrlangstabledistsurvivaltibbletidyselectutf8vctrswithrzoo

Readme and manuals

Help Manual

Help pageTopics
Generate the matrix A, whose columns are the vertices of the marginal polytope.Amatrix
Generate the matrix A, whose columns are the vertices of the marginal polytope, as a sparse matrix.AmatrixSparse
Generates the row indices used internally to generate the sparse matrix A.aMatrixSparseRevLex
Compute the columnwise average of a collection of vectors.av
Calculate the critical value for our improved testCimproved
A function indexing the columns of Acol_index
Generates the column indices used internally to generate the sparse matrix A.colVector
A function computing the incompatibility index for sequences of correlation matrices.computeR
A function computing the regularised incompatibility index for collections of correlation matrices.computeR.reg
Calculate the H-representation of the consistent Minkowski sumConsMinkSumHrep
Carry out a test of MCAR checking compatibility of correlation matrices.corrCompTest
Calculate the critical value for our simple testCsimple
Perform one step of the EM algorithm for finding the MLE under MCAR in a contingency table.EMiteration
Simplifies H-representation by exploiting symmetryEquivalenceClass
Carry out Fuchs's test of MCAR in a contingency table, given complete and incomplete observations.FuchsTest
Computes the collection of patterns, means, variances, covariance and correlation matrices for a given dataset with missing values.get_SigmaS
Calculate the H-representation of the general (possibly inconsistent) Minkowski sumInconsMinkSumHrep
Calculates the total cardinality of the sample spaces.infoS
Calculates the individual cardinalities of the sample spaces.infoS2
Carry out Little's test of MCAR.little_test
Compute the log likelihood of a probability mass function, under MCAR, given complete and incomplete dataloglik0
Compute the log likelihood of a probability mass function, without assuming MCAR, given complete and incomplete dataloglik1
Computes an inconsistency index for a collection of means.M
Calculate the H-representation of the marginal polytopeMargPolyHrep
Internal function multiplying a mass function by the sparse matrix A.margProj
Carry out a test of MCAR checking consistency of mean vectors.meanConsTest
Compute the MLE under MCAR in a contingency table using the EM algorithm, given complete and incomplete observations.MLE
Carry out a test of MCAR in a contingency table, given incomplete observations.ProjectionTest
A function computing the incompatibility indexRindex
A function computing the incompatibility index and associated closest joint mass function using the dual formulationRindexDual
Round errors in halfspace representationsRoundErrors
A function indexing the rows of Arow_index
Computes an inconsistency index for sequences of variances.V
Carry out a test of MCAR checking consistency of variance vectors.varConsTest