mddtest.perm | R Documentation |
mddtest.boot
tests the mean independence of U conditional on V using the wild
bootstrap following Shao & Zhang 2014.
mddtest.perm(U, V, B = 199, PBmat = NULL, cl = NULL)
U |
univariate variable |
V |
possibly multivariate variable |
B |
number of wild bootstrap samples. Defaults to 199 |
PBmat |
in case the n x B matrix of permuted ids is supplied by the user. |
cl |
an integer to indicate number of child-processes in pbapply::pbsapply(). used |
test statistic and p-value
set.seed(12); X = rnorm(200)
mddtest.perm(X,abs(X)); mddtest.perm(abs(X),X)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.