Csimple {MCARtest} | R Documentation |
Calculate a simple critical value for an MCAR test using only knowledge of the set of observation patterns and the joint observation space.
Csimple(nS, bS, M, alpha)
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. |
alpha |
The desired significance level |
The universal critical value defined in Berrett and Samworth (2022).
Berrett TB, Samworth RJ (2022). “Optimal nonparametric testing of Missing Completely At Random, and its connections to compatibility.” Preprint, arXiv:2205.08627.
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)
Csimple(rep(1000,3),bS,M,0.05)