| Home » date » 2007 » Dec » 05 » attachments | |||||||||||||||||||||||||||||||||||||||||||||||
Oplossing Opdracht 4 question 4 | |||||||||||||||||||||||||||||||||||||||||||||||
| R Software Module: rwasp_pairs.wasp (opens new window with default values) | |||||||||||||||||||||||||||||||||||||||||||||||
| Title produced by software: Kendall tau Correlation Matrix | |||||||||||||||||||||||||||||||||||||||||||||||
| Date of computation: Wed, 05 Dec 2007 10:44:09 -0700 | |||||||||||||||||||||||||||||||||||||||||||||||
| Cite this page as follows: | |||||||||||||||||||||||||||||||||||||||||||||||
| Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL http://www.freestatistics.org/blog/date/2007/Dec/05/t1196875915gt8tev9a5mfwbuk.htm/, Retrieved Wed, 05 Dec 2007 18:31:57 +0100 | |||||||||||||||||||||||||||||||||||||||||||||||
| User-defined keywords: | |||||||||||||||||||||||||||||||||||||||||||||||
| Dataseries X: | |||||||||||||||||||||||||||||||||||||||||||||||
| » Textbox « » Textfile « » CSV « | |||||||||||||||||||||||||||||||||||||||||||||||
| 476 4.038684545 13642.9 0 475 3.813780613 13734.5 0.064820305 470 3.813780613 13742.7 0.307773919 461 1.987016728 13315.9 0.210610131 455 1.634859133 13217.1 0.064820305 456 0.721810023 13200.6 0 517 1.149399779 13409.5 -0.1995 525 1.467105406 13761.2 0.019949999 523 1.305199524 13782.6 0.129144606 519 1.467105406 13958.4 0.129144606 509 1.149399779 14030.2 -0.1995 512 1.467105406 14143.4 0.210610131 519 1.305199524 14835 -0.0648 517 1.987016728 14873.4 0.210610131 510 2.171029929 14958.6 0.419608672 509 1.808231366 14242.2 0.019949999 501 0.857338428 14098.2 -0.1995 507 1.808231366 14143.1 0.019949999 569 1.634859133 14051.4 -0.1995 580 1.987016728 14297.4 0.064820305 578 2.171029929 14218.2 0.210610131 565 1.634859133 14483.2 0.019949999 547 2.360102718 14469.2 0.019949999 555 2.171029929 14536.1 0.129144606 562 1.634859133 15195.1 -0.0648 561 1.305199524 15397.8 0.064820305 555 1 15193.6 0.419608672 544 2.171029929 14474.7 0.210610131 537 3.592985973 14366.1 0.129144606 543 2.752825072 14319.9 0 594 2.956203564 14332.4 -0.0648 611 2.752825072 14718 0.064820305 613 2.360102718 14645.3 0.064820305 611 4.267611763 14910.2 0.129144606 594 3.376392098 15007.7 -0.1995 595 2.554081444 15065.5 0.210610131 591 2.752825072 15616.2 -0.4196 589 3.376392098 15609.3 0.129144606 584 4.50048121 15601.7 0.419608672 573 3.592985973 14942.4 0.210610131 567 3.376392098 14995.5 0.129144606 569 4.267611763 14747.8 0.019949999 621 4.267611763 14452.7 -0.1995 629 4.737216323 14957.5 0.129144606 628 4.977744641 14787.6 0.307773919 612 3.164096529 15286 0.064820305 595 3.376392098 15040.6 -0.0648 597 4.50048121 15075.3 0.129144606 593 4.50048121 15833.2 -0.3078 590 4.50048121 15527.7 0.129144606 580 3.164096529 15387.8 0.307773919 574 4.038684545 14470.4 0.54532803 573 4.50048121 13995.6 0.129144606 573 3.813780613 14189.7 0.019949999 620 3.592985973 13881.3 -0.1995 626 3.376392098 14135.3 0.019949999 620 2.554081444 13827.5 0 588 2.171029929 14031.3 0.019949999 566 2.752825072 14091.9 0.019949999 557 2.956203564 13986.7 0.210610131 | |||||||||||||||||||||||||||||||||||||||||||||||
| Text written by user: | |||||||||||||||||||||||||||||||||||||||||||||||
| Output produced by software: | |||||||||||||||||||||||||||||||||||||||||||||||
| Charts produced by software: |
| Parameters: | | 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='kendall') 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') a<-table.start() a<-table.row.start(a) a<-table.element(a,'Kendall tau rank correlations for all pairs of data series',3,TRUE) a<-table.row.end(a) a<-table.row.start(a) a<-table.element(a,'pair',1,TRUE) a<-table.element(a,'tau',1,TRUE) a<-table.element(a,'p-value',1,TRUE) a<-table.row.end(a) n <- length(y[,1]) n cor.test(y[1,],y[2,],method='kendall') for (i in 1:(n-1)) { for (j in (i+1):n) { a<-table.row.start(a) dum <- paste('tau(',dimnames(t(x))[[2]][i]) dum <- paste(dum,',') dum <- paste(dum,dimnames(t(x))[[2]][j]) dum <- paste(dum,')') a<-table.element(a,dum,header=TRUE) r <- cor.test(y[i,],y[j,],method='kendall') a<-table.element(a,r$estimate) a<-table.element(a,r$p.value) a<-table.row.end(a) } } a<-table.end(a) table.save(a,file='mytable.tab') | Copyright
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:
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 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. | |||||||||||||||||||||||||||||||||||||||