Package: MCARtest 1.2.2

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.2.2.tar.gz
MCARtest_1.2.2.tar.gz(r-4.5-noble)MCARtest_1.2.2.tar.gz(r-4.4-noble)
MCARtest_1.2.2.tgz(r-4.4-emscripten)MCARtest_1.2.2.tgz(r-4.3-emscripten)
MCARtest.pdf |MCARtest.html
MCARtest/json (API)

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

Peer review:

Uses libs:
  • c++– GNU Standard C++ Library v3

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

1.48 score 1 scripts 205 downloads 31 exports 51 dependencies

Last updated 2 months agofrom:87b440f076. Checks:OK: 1 NOTE: 1. Indexed: yes.

TargetResultDate
Doc / VignettesOKOct 30 2024
R-4.5-linux-x86_64NOTEOct 30 2024

Exports:AmatrixAmatrixSparseaMatrixSparseRevLexCimprovedcol_indexcolVectorcompute_avcomputeRConsMinkSumHrepCsimpleEMiterationEquivalenceClassFuchsTestget_SigmaSInconsMinkSumHrepinfoSinfoS2little_testloglik0loglik1MMargPolyHrepmargProjMCAR_meancovTestMLEProjectionTestRindexRindexDualRoundErrorsrow_indexV

Dependencies:ADGofTestbackportscheckmateclicmprskcolorspacecopuladata.tabledplyrEpietmfansigenericsgluegslgtoolshighslatticelifecyclelpSolvemagrittrMASSMatrixmgcvmissMethodsmvtnormnlmenormnumDerivpcaPPpillarpkgconfigplyrpracmapsplineR6rbibutilsrcddRcppRcppArmadilloRcsdpRdpackrlangstabledistsurvivaltibbletidyselectutf8vctrswithrzoo

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
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
Compute the columnwise average of means/variancescompute_av
A function computing the incompatibility index for sequences of correlation matricescomputeR
Calculate the H-representation of the consistent Minkowski sumConsMinkSumHrep
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 sequence 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 MCARlittle_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 sequences 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 using first and second moments.MCAR_meancovTest
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