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