::Free Statistics and Forecasting Software::

v1.1.22-r6
 
  Black&White | Blue Theme | Normal Fontsize | Increase Fontsize | Decrease Fontsize | Toggle underline | Secure website (SSL)
 
 
This software module is powered by R

:: Kendall tau Correlation Matrix - Free Statistics Software (Calculator) ::

All rights reserved. The non-commercial (academic) use of this software is free of charge. The only thing that is asked in return is to cite this software when results are used in publications.

This free online software (calculator) computes the (multivariate) correlation plot based on Kendall tau rank correlations. The diagonal of the matrix displays the histogram of each data series. The upper half of the matrix contains the scatterplots (and smooth curve) for every combination of pairs of data series. In the lower half of the matrix a number is displayed that represents the p-value of the Kendall tau rank correlation. For every scatterplot (in the upper half) there is a corresponding p-value in the lower half. The name of each row/column of the matrix is displayed on the diagonal (above the histogram).

This software module can be used to quickly identify and explore associations between the variables in a multivariate dataset. We use Kendall tau rank correlations because they have desirable properties (such as robustness) compared to other types of correlation (Spearman rank correlation or Pearson correlation).

For an in-depth comparison between various types of correlation see: Arndt, S., Turvey, C., Andreasen, N. (1999), Correlating and predicting psychiatric symptom ratings:Spearmans r versus Kendalls tau correlation, Journal of Psychiatric Research, 33, 97-104

Click here to edit the underlying code of this R Module.

Enter (or paste) a matrix (table) containing all data (time) series. Every column represents a different variable and must be delimited by a space or Tab. Every row represents a period in time (or category) and must be delimited by hard returns. The easiest way to enter data is to copy and paste a block of spreadsheet cells. Please, do not use commas or spaces to seperate groups of digits!

Send output to:
Data X:
Names of X columns:
Sample Range:
(leave blank to include all observations)
From:
To:
Chart options
Width:
Height:
Title:

Click here to edit the underlying code of this R Module.






Cite this software as:
Wessa P., (2008), Multivariate Correlation Matrix (v1.0.4) in Free Statistics Software (v1.1.22-r6), Office for Research Development and Education, URL http://www.wessa.net/rwasp_pairs.wasp/
The R code is based on :
Becker, R. A., Chambers, J. M. and Wilks, A. R. (1988), The New S Language, Wadsworth & Brooks/Cole.

Source code of R module
1panel.tau <- function(x, y, digits=2, prefix="", cex.cor)
2{
3usr <- par("usr"); on.exit(par(usr))
4par(usr = c(0, 1, 0, 1))
5rr <- cor.test(x, y, method="kendall")
6r <- round(rr$p.value,2)
7txt <- format(c(r, 0.123456789), digits=digits)[1]
8txt <- paste(prefix, txt, sep="")
9if(missing(cex.cor)) cex <- 0.5/strwidth(txt)
10text(0.5, 0.5, txt, cex = cex)
11}
12panel.hist <- function(x, ...)
13{
14usr <- par("usr"); on.exit(par(usr))
15par(usr = c(usr[1:2], 0, 1.5) )
16h <- hist(x, plot = FALSE)
17breaks <- h$breaks; nB <- length(breaks)
18y <- h$counts; y <- y/max(y)
19rect(breaks[-nB], 0, breaks[-1], y, col="grey", ...)
20}
21bitmap(file="test1.png")
22pairs(t(y),diag.panel=panel.hist, upper.panel=panel.smooth, lower.panel=panel.tau, main=main)
23dev.off()
24load(file="createtable")
25a<-table.start()
26a<-table.row.start(a)
27a<-table.element(a,"Kendall tau rank correlations for all pairs of data series",3,TRUE)
28a<-table.row.end(a)
29a<-table.row.start(a)
30a<-table.element(a,"pair",1,TRUE)
31a<-table.element(a,"tau",1,TRUE)
32a<-table.element(a,"p-value",1,TRUE)
33a<-table.row.end(a)
34n <- length(y[,1])
35n
36cor.test(y[1,],y[2,],method="kendall")
37for (i in 1:(n-1))
38{
39for (j in (i+1):n)
40{
41a<-table.row.start(a)
42dum <- paste("tau(",dimnames(t(x))[[2]][i])
43dum <- paste(dum,",")
44dum <- paste(dum,dimnames(t(x))[[2]][j])
45dum <- paste(dum,")")
46a<-table.element(a,dum,header=TRUE)
47r <- cor.test(y[i,],y[j,],method="kendall")
48a<-table.element(a,r$estimate)
49a<-table.element(a,r$p.value)
50a<-table.row.end(a)
51}
52}
53a<-table.end(a)
54table.save(a,file="mytable.tab")
Last computationDelete history
Server DateModuleCommand
Sat, 17 May 2008 14:42:12 -0600Kendall tau Correlation MatrixPrint | Word | Excel | Blog this | Delete
Sat, 17 May 2008 14:42:12 -0600Start of session-

Please, send us your feedback!
Overall rating
What do you think about the response time?
Rate the facility with which you interact with our software.
Is the output presented in an understandable (clear) form?
How did you find this website/module?
Do you have any comments about our site?
Do you have any suggestions for our site?
Please enter the code that is displayed in this picture: captcha

To cite Wessa.net in publications use:
Wessa, P. (2008), Free Statistics Software, Office for Research Development and Education,
version 1.1.22-r6, URL http://www.wessa.net/

© Resa R&D, and the 'Office for Research, Development, and Education' - All rights reserved. Academic license for non-commercial use only.
This website is an intellectual and physical property of Resa R&D. This includes: html content, graphical illustrations (gif files), computer software, online or electronic documentation, associated media, and printed materials. The free use of the scientific content, services, and applications in this website is granted for non commercial use only. In any case, the source (url) should always be clearly displayed. Under no circumstances are you allowed to reproduce, copy or redistribute the design, layout, or any content of this website (for commercial use) including any materials contained herein without the express written permission of Resa R&D or the Office for Research, Development, and Education.

Information provided on this web site is provided "AS IS" without warranty of any kind, either express or implied, including, without limitation, warranties of merchantability, fitness for a particular purpose, and noninfringement. We use reasonable efforts to include accurate and timely information and periodically update the information, and software without notice. However, Resa R&D makes no warranties or representations as to the accuracy or completeness of such information (or software), and it assumes no liability or responsibility for errors or omissions in the content of this web site, or any software bugs in online applications. Your use of this web site is AT YOUR OWN RISK. Under no circumstances and under no legal theory shall Resa R&D be liable to you or any other person for any direct, indirect, special, incidental, exemplary, or consequential damages arising from your access to, or use of, this web site.

Software Version : 1.1.22-r6
Algorithms & Software : Prof. dr. P. Wessa
Facilities : Resa R&D - Office for Research, Development, and Education
Server : www.wessa.net

Comments, Feedback & Errors | Privacy Policy | Statistics Resources | Wessa.net Home

 © Wessa.Net 2002-2008  
 
 

Home Page
Equation Plotter
Time Series Analysis (new)
Time Series Analysis (old)
Multiple Regression (new)
Multiple Regression (old)
Descriptive Statistics
Statistical Distributions
Hypothesis Testing

Academic citations
Computations Archive
Search Computations
FAQ
About Wessa.net
Powered by Linux

Server status page
History list
Edit R Code
Google
Web wessa.net