rpucor.test {rpud}R Documentation

Compute the p-values of the correlation matrix

Description

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.

Usage

rpucor.test(x, ...)

## Default S3 method:
rpucor.test(x, y = NULL,
    alternative = c("two.sided", "less", "greater"),
    use = "everything", method = "kendall", ...)

Arguments

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: "two.sided"(default), "less", or "greater".

use

a string representing the method to handle missing values. Currently supported values are: "everything"(default), "all.obs", "complete.obs", "na.or.complete", or "pairwise.complete.obs".

method

a string representing the name of the correlation to be computed. Currently, the only supported value is "kendall".

...

further arguments to be passed to or from methods.

Details

Compute the p-values of the Kendall Tau-b correlation with GPU using the rpudplus add-on for rpud.

Value

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.

See Also

rpucor, cor.test

Examples

## 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)

[Package rpud version 0.7.0 Index]