Cimproved {MCARtest}R Documentation

Calculate the critical value for our improved test

Description

Calculate a critical value for an MCAR test based on knowledge of the facet structure of the Minkowski sum calculated by ConsMinkSumHrep.

Usage

Cimproved(nS, bS, M, DR, Fp, alpha)

Arguments

nS

A vector of sample sizes, with each entry corresponding to an observation pattern.

bS

A binary matrix specifying the set of observation patterns. Each row encodes a single pattern.

M

A vector of positive integers giving the alphabet sizes of the discrete variables.

DR

The quantity D_R appearing in Berrett and Samworth (2023).

Fp

The quantity F' appearing in Berrett and Samworth (2023).

alpha

The desired significance level \alpha of the test.

Value

The critical value C_\alpha' defined in Berrett and Samworth (2023).

References

Berrett TB, Samworth RJ (2023). “Optimal nonparametric testing of Missing Completely At Random, and its connections to compatibility.” Ann. Statist., 51, 2170–2193.

Examples

bS=matrix(c(1,1,0, 1,0,1, 0,1,1),byrow=TRUE,ncol=3)
r=4; s=3
M=c(r,s,2)
Cimproved(rep(1000,3),bS,M,1,(2^r-2)*(2^s-2),0.05)

[Package MCARtest version 1.2.1 Index]