rpucor.test {rpud} | R Documentation |
This function computes the p-values of the correlation matrix of two multivariate statistics. Current implementation supports only finding p-values of the Kendall Tau-b coefficient.
rpucor.test(x, ...)
## Default S3 method:
rpucor.test(x, y = NULL,
alternative = c("two.sided", "less", "greater"),
use = "everything", method = "kendall", ...)
x |
a numeric vector, matrix or data frame. |
y |
a vector, matrix or data frame with compatible dimensions to 'x'. The default 'NULL' value is equivalent to 'y = x'. |
alternative |
a string representing the alternative hypothesis.
It must be one of the following: |
use |
a string representing the method to handle missing values.
Currently supported values are: |
method |
a string representing the name of the correlation to be
computed. Currently, the only supported value is |
... |
further arguments to be passed to or from methods. |
Compute the p-values of the Kendall Tau-b correlation with GPU using the rpudplus add-on for rpud.
A list of class "rpucor.test"
containing the following:
statistic |
matrix of the Z statistics. |
p.value |
matrix of the p-values. |
estimate |
matrix of the correlation coefficient. |
null.value |
the zero value for the null hypothesis. |
alternative |
a string representing the alternative hypothesis. |
method |
the correlation method. |
use |
the method to handle the missing values. |
data.name |
a string representing the input data. |
rpucor, cor.test
## Not run:
num <- 5
dim1 <- 6
dim2 <- 8
x <- matrix(runif(num*dim1), num, dim1)
y <- matrix(runif(num*dim2), num, dim2)
rpucor.test(x, y, method = "kendall")
# introduce missing values
x[3,5] <- NA
y[4,1] <- NA
rpucor.test(x, y, method = "kendall", use="pairwise.complete.obs")
## End(Not run)