corTestDS {dsBase} | R Documentation |
This function is similar to R function cor.test
.
corTestDS(x, y, method, exact, conf.level)
x |
a character string providing the name of a numerical vector. |
y |
a character string providing the name of a numerical vector. |
method |
a character string indicating which correlation coefficient is to be used for the test. One of "pearson", "kendall", or "spearman", can be abbreviated. |
exact |
a logical indicating whether an exact p-value should be computed. Used for Kendall's tau and Spearman's rho. |
conf.level |
confidence level for the returned confidence interval. Currently only used for the Pearson product moment correlation coefficient if there are at least 4 complete pairs of observations. |
The function runs a two-sided correlation test
the results of the correlation test.
Demetris Avraam, for DataSHIELD Development Team