| | *The author of this computation has been verified* | R Software Module: Patrick.Wessa/rwasp_pairs.wasp (opens new window with default values) | Title produced by software: Kendall tau Correlation Matrix | Date of computation: Tue, 21 Dec 2010 17:10:58 +0000 | | Cite this page as follows: | Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL http://www.freestatistics.org/blog/date/2010/Dec/21/t1292951397msoxo3i1r1qvzct.htm/, Retrieved Tue, 21 Dec 2010 18:10:00 +0100 | | BibTeX entries for LaTeX users: | @Manual{KEY,
author = {{YOUR NAME}},
publisher = {Office for Research Development and Education},
title = {Statistical Computations at FreeStatistics.org, URL http://www.freestatistics.org/blog/date/2010/Dec/21/t1292951397msoxo3i1r1qvzct.htm/},
year = {2010},
}
@Manual{R,
title = {R: A Language and Environment for Statistical Computing},
author = {{R Development Core Team}},
organization = {R Foundation for Statistical Computing},
address = {Vienna, Austria},
year = {2010},
note = {{ISBN} 3-900051-07-0},
url = {http://www.R-project.org},
}
| | Original text written by user: | | | IsPrivate? | No (this computation is public) | | User-defined keywords: | | | Dataseries X: | » Textbox « » Textfile « » CSV « | 8 350 165 3693 11.5
8 318 150 3436 11
8 302 140 3449 10.5
8 429 198 4341 10
8 440 215 4312 8.5
8 455 225 4425 10
8 383 170 3563 10
8 340 160 3609 8
8 455 225 3086 10
4 113 95 2372 15
6 199 97 2774 15.5
4 97 46 1835 20.5
4 110 87 2672 17.5
4 104 95 2375 17.5
4 121 113 2234 12.5
8 360 215 4615 14
8 307 200 4376 15
8 304 193 4732 18.5
4 97 88 2130 14.5
4 113 95 2228 14
6 250 100 3329 15.5
6 232 100 3288 15.5
8 350 165 4209 12
8 318 150 4096 13
8 400 170 4746 12
8 400 175 5140 12
4 140 72 2408 19
6 250 100 3282 15
4 122 86 2220 14
4 116 90 2123 14
4 88 76 2065 14.5
4 71 65 1773 19
4 97 60 1834 19
4 91 70 1955 20.5
4 97,5 80 2126 17
4 122 86 2226 16.5
8 350 165 4274 12
8 318 150 4135 13.5
8 351 153 4129 13
8 429 208 4633 11
8 350 155 4502 13.5
8 400 190 4422 12.5
3 70 97 2330 13.5
8 307 130 4098 14
8 302 140 4294 16
4 121 112 2933 14.5
4 121 76 2511 18
4 122 86 2395 16
4 120 97 2506 14.5
4 98 80 2164 15
8 350 175 4100 13
8 304 150 3672 11.5
8 302 137 4042 14.5
8 etc... | | Output produced by software: | 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!
Correlations for all pairs of data series (method=pearson) | | cylinders | engine.displacement | horsepower | weight | acceleration
| cylinders | 1 | 0.95 | 0.845 | 0.899 | -0.508 | engine.displacement | 0.95 | 1 | 0.901 | 0.933 | -0.55 | horsepower | 0.845 | 0.901 | 1 | 0.865 | -0.683 | weight | 0.899 | 0.933 | 0.865 | 1 | -0.417 | acceleration
| -0.508 | -0.55 | -0.683 | -0.417 | 1 |
Correlations for all pairs of data series with p-values | pair | Pearson r | Spearman rho | Kendall tau | cylinders;engine.displacement | 0.9503 | 0.9143 | 0.7965 | p-value | (0) | (0) | (0) | cylinders;horsepower | 0.8451 | 0.8251 | 0.6944 | p-value | (0) | (0) | (0) | cylinders;weight | 0.8988 | 0.8801 | 0.7428 | p-value | (0) | (0) | (0) | cylinders;acceleration
| -0.508 | -0.4806 | -0.3772 | p-value | (0) | (0) | (0) | engine.displacement;horsepower | 0.9014 | 0.8836 | 0.7263 | p-value | (0) | (0) | (0) | engine.displacement;weight | 0.9327 | 0.9473 | 0.8024 | p-value | (0) | (0) | (0) | engine.displacement;acceleration
| -0.5497 | -0.5035 | -0.3619 | p-value | (0) | (0) | (0) | horsepower;weight | 0.8651 | 0.8849 | 0.7108 | p-value | (0) | (0) | (0) | horsepower;acceleration
| -0.6826 | -0.6475 | -0.4871 | p-value | (0) | (0) | (0) | weight;acceleration
| -0.4174 | -0.4055 | -0.2732 | p-value | (0) | (0) | (0) |
| | Charts produced by software: | | http://www.freestatistics.org/blog/date/2010/Dec/21/t1292951397msoxo3i1r1qvzct/11ptz1292951448.png (open in new window) | http://www.freestatistics.org/blog/date/2010/Dec/21/t1292951397msoxo3i1r1qvzct/11ptz1292951448.ps (open in new window) |
| | Parameters (Session): | par1 = pearson ; | | Parameters (R input): | par1 = pearson ; | | R code (references can be found in the software module): | panel.tau <- function(x, y, digits=2, prefix='', cex.cor)
{
usr <- par('usr'); on.exit(par(usr))
par(usr = c(0, 1, 0, 1))
rr <- cor.test(x, y, method=par1)
r <- round(rr$p.value,2)
txt <- format(c(r, 0.123456789), digits=digits)[1]
txt <- paste(prefix, txt, sep='')
if(missing(cex.cor)) cex <- 0.5/strwidth(txt)
text(0.5, 0.5, txt, cex = cex)
}
panel.hist <- function(x, ...)
{
usr <- par('usr'); on.exit(par(usr))
par(usr = c(usr[1:2], 0, 1.5) )
h <- hist(x, plot = FALSE)
breaks <- h$breaks; nB <- length(breaks)
y <- h$counts; y <- y/max(y)
rect(breaks[-nB], 0, breaks[-1], y, col='grey', ...)
}
bitmap(file='test1.png')
pairs(t(y),diag.panel=panel.hist, upper.panel=panel.smooth, lower.panel=panel.tau, main=main)
dev.off()
load(file='createtable')
n <- length(y[,1])
n
a<-table.start()
a<-table.row.start(a)
a<-table.element(a,paste('Correlations for all pairs of data series (method=',par1,')',sep=''),n+1,TRUE)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a,' ',header=TRUE)
for (i in 1:n) {
a<-table.element(a,dimnames(t(x))[[2]][i],header=TRUE)
}
a<-table.row.end(a)
for (i in 1:n) {
a<-table.row.start(a)
a<-table.element(a,dimnames(t(x))[[2]][i],header=TRUE)
for (j in 1:n) {
r <- cor.test(y[i,],y[j,],method=par1)
a<-table.element(a,round(r$estimate,3))
}
a<-table.row.end(a)
}
a<-table.end(a)
table.save(a,file='mytable.tab')
a<-table.start()
a<-table.row.start(a)
a<-table.element(a,'Correlations for all pairs of data series with p-values',4,TRUE)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a,'pair',1,TRUE)
a<-table.element(a,'Pearson r',1,TRUE)
a<-table.element(a,'Spearman rho',1,TRUE)
a<-table.element(a,'Kendall tau',1,TRUE)
a<-table.row.end(a)
cor.test(y[1,],y[2,],method=par1)
for (i in 1:(n-1))
{
for (j in (i+1):n)
{
a<-table.row.start(a)
dum <- paste(dimnames(t(x))[[2]][i],';',dimnames(t(x))[[2]][j],sep='')
a<-table.element(a,dum,header=TRUE)
rp <- cor.test(y[i,],y[j,],method='pearson')
a<-table.element(a,round(rp$estimate,4))
rs <- cor.test(y[i,],y[j,],method='spearman')
a<-table.element(a,round(rs$estimate,4))
rk <- cor.test(y[i,],y[j,],method='kendall')
a<-table.element(a,round(rk$estimate,4))
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a,'p-value',header=T)
a<-table.element(a,paste('(',round(rp$p.value,4),')',sep=''))
a<-table.element(a,paste('(',round(rs$p.value,4),')',sep=''))
a<-table.element(a,paste('(',round(rk$p.value,4),')',sep=''))
a<-table.row.end(a)
}
}
a<-table.end(a)
table.save(a,file='mytable1.tab')
| |
Copyright
This work is licensed under a
Creative Commons Attribution-Noncommercial-Share Alike 3.0 License.
Software written by Ed van Stee & Patrick Wessa
Disclaimer
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, we make
no warranties or representations as to the accuracy or
completeness of such information (or software), and we assume 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 we 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.
Privacy Policy
We may request personal information to be submitted to our servers in order to be able to:
- personalize online software applications according to your needs
- enforce strict security rules with respect to the data that you upload (e.g. statistical data)
- manage user sessions of online applications
- alert you about important changes or upgrades in resources or applications
We NEVER allow other companies to directly offer registered users
information about their products and services. Banner references and
hyperlinks of third parties NEVER contain any personal data of the
visitor.
We do NOT sell, nor transmit by any means, personal information, nor statistical data series uploaded by you to third parties.
We carefully protect your data from loss, misuse, alteration,
and destruction. However, at any time, and under any circumstance you
are solely responsible for managing your passwords, and keeping them
secret.
We store a unique ANONYMOUS USER ID in the form of a small
'Cookie' on your computer. This allows us to track your progress when
using this website which is necessary to create state-dependent
features. The cookie is used for NO OTHER PURPOSE. At any time you may
opt to disallow cookies from this website - this will not affect other
features of this website.
We examine cookies that are used by third-parties (banner and
online ads) very closely: abuse from third-parties automatically
results in termination of the advertising contract without refund. We
have very good reason to believe that the cookies that are produced by
third parties (banner ads) do NOT cause any privacy or security risk.
FreeStatistics.org is safe. There is no need to download any
software to use the applications and services contained in this
website. Hence, your system's security is not compromised by their use,
and your personal data - other than data you submit in the account
application form, and the user-agent information that is transmitted by
your browser - is never transmitted to our servers.
As a general rule, we do not log on-line behavior of
individuals (other than normal logging of webserver 'hits'). However,
in cases of abuse, hacking, unauthorized access, Denial of Service
attacks, illegal copying, hotlinking, non-compliance with international
webstandards (such as robots.txt), or any other harmful behavior, our
system engineers are empowered to log, track, identify, publish, and
ban misbehaving individuals - even if this leads to ban entire blocks
of IP addresses, or disclosing user's identity.
FreeStatistics.org is powered by
|