mddtest.boot: An MDD-based Test of Mean Independence by Wild Bootstrap

View source: R/dCovReg.R

mddtest.bootR Documentation

An MDD-based Test of Mean Independence by Wild Bootstrap

Description

mddtest.boot tests the mean independence of U conditional on V using the wild bootstrap following Shao & Zhang 2014.

Usage

mddtest.boot(U, V, B = 199, wmat = NULL, cl = NULL, cluster = NULL)

Arguments

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

Value

test statistic and p-value

Examples

set.seed(12); X = rnorm(200)
mddtest.boot(X,abs(X)); mddtest.boot(abs(X),X)

estsyawo/bayesprdopt documentation built on April 2, 2024, 2:18 p.m.