GCM test with pre-computed residuals
rgcm(
rY,
rX,
alternative = "two.sided",
coin = FALSE,
B = 499L,
type = c("quadratic", "max", "scalar"),
...
)Object of class 'gcm' and 'htest' with the following
components:
statisticThe value of the test statistic.
p.valueThe p-value for the hypothesis
parameterIn case X is multidimensional, this is the degrees of freedom used for the chi-squared test.
hypothesisString specifying the null hypothesis.
null.valueString specifying the null hypothesis.
methodThe string "Generalised covariance measure test".
data.nameA character string giving the name(s) of the data.
rYResiduals for the Y on Z regression.
rXResiduals for the X on Z regression.
Vector or matrix of response values.
Matrix or data.frame of covariates.
A character string specifying the alternative hypothesis,
must be one of "two.sided" (default), "greater" or
"less". Only applies if type = "quadratic" and Y and
X are one-dimensional.
Logical; whether or not to use the coin package for
computing the test statistic and p-value. The coin package
computes variances with n - 1 degrees of freedom.
The default is TRUE.
Number of bootstrap samples. Only applies if type = "max" is
used.
Type of test statistic, either "quadratic" (default) or
"max". If "max" is specified, the p-value is computed
based on a bootstrap approximation of the null distribution with
B samples.
Further arguments passed to independence_test().