Learn R Programming

pchc (version 0.4)

Correlation significance testing using Fisher's z-transformation: Correlation significance testing using Fisher's z-transformation

Description

Correlation significance testing using Fisher's z-transformation.

Usage

cortest(y, x, rho = 0, a = 0.05 )

Arguments

y

A numerical vector.

x

A numerical vector.

rho

The value of the hypothesised correlation to be used in the hypothesis testing.

a

The significance level used for the confidence intervals.

Value

A vector with 5 numbers; the correlation, the p-value for the hypothesis test that each of them is equal to "rho", the test statistic and the $a/2%$ lower and upper confidence limits.

Details

The function uses the built-in function "cor" which is very fast, then computes a confidence interval and produces a p-value for the hypothesis test.

References

Tsagris M. (2021). A new scalable Bayesian network learning algorithm with applications to economics. Computational Economics (Accepted for publication).

See Also

pcor, rmcd

Examples

Run this code
# NOT RUN {
x <- rcauchy(60)
y <- rnorm(60)
cortest(y, x)
# }

Run the code above in your browser using DataLab