R version 2.9.0 (2009-04-17) Copyright (C) 2009 The R Foundation for Statistical Computing ISBN 3-900051-07-0 R is free software and comes with ABSOLUTELY NO WARRANTY. You are welcome to redistribute it under certain conditions. Type 'license()' or 'licence()' for distribution details. R is a collaborative project with many contributors. Type 'contributors()' for more information and 'citation()' on how to cite R or R packages in publications. Type 'demo()' for some demos, 'help()' for on-line help, or 'help.start()' for an HTML browser interface to help. Type 'q()' to quit R. > x <- c(94,93,92,90,110,109,94,84,85,85,86,88,93,94,90,91,104,103,88,79,82,88,93,89,94,96,94,92,113,122,107,98,103,110,113,110,123,124,118,117,139,146,134,121,123,122,127,122,139,136,127,123,140,146,138,120,122,115,115,102,119,114,108,102,121,109,102,95,98,92,94,90,113,111,103,90,108,99,95,91,85,72,90,90,114,115,104,93,101,90,79,75,71,61,84,87,107,99,93,74,87,71,67,61,63,52,80,84,102,93,87,72,83,72,66,64,64,47,77,79) > par1 = '12' > #'GNU S' R Code compiled by R2WASP v. 1.0.44 () > #Author: Prof. Dr. P. Wessa > #To cite this work: AUTHOR(S), (YEAR), YOUR SOFTWARE TITLE (vNUMBER) in Free Statistics Software (v$_version), Office for Research Development and Education, URL http://www.wessa.net/rwasp_YOURPAGE.wasp/ > #Source of accompanying publication: Office for Research, Development, and Education > #Technical description: Write here your technical program description (don't use hard returns!) > par1 <- as.numeric(par1) > (n <- length(x)) [1] 120 > (np <- floor(n / par1)) [1] 10 > arr <- array(NA,dim=c(par1,np+1)) > darr <- array(NA,dim=c(par1,np+1)) > ari <- array(0,dim=par1) > dx <- diff(x) > j <- 0 > for (i in 1:n) + { + j = j + 1 + ari[j] = ari[j] + 1 + arr[j,ari[j]] <- x[i] + darr[j,ari[j]] <- dx[i] + if (j == par1) j = 0 + } > ari [1] 10 10 10 10 10 10 10 10 10 10 10 10 > arr [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [,9] [,10] [,11] [1,] 94 93 94 123 139 119 113 114 107 102 NA [2,] 93 94 96 124 136 114 111 115 99 93 NA [3,] 92 90 94 118 127 108 103 104 93 87 NA [4,] 90 91 92 117 123 102 90 93 74 72 NA [5,] 110 104 113 139 140 121 108 101 87 83 NA [6,] 109 103 122 146 146 109 99 90 71 72 NA [7,] 94 88 107 134 138 102 95 79 67 66 NA [8,] 84 79 98 121 120 95 91 75 61 64 NA [9,] 85 82 103 123 122 98 85 71 63 64 NA [10,] 85 88 110 122 115 92 72 61 52 47 NA [11,] 86 93 113 127 115 94 90 84 80 77 NA [12,] 88 89 110 122 102 90 90 87 84 79 NA > darr [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [,9] [,10] [,11] [1,] -1 1 2 1 -3 -5 -2 1 -8 -9 NA [2,] -1 -4 -2 -6 -9 -6 -8 -11 -6 -6 NA [3,] -2 1 -2 -1 -4 -6 -13 -11 -19 -15 NA [4,] 20 13 21 22 17 19 18 8 13 11 NA [5,] -1 -1 9 7 6 -12 -9 -11 -16 -11 NA [6,] -15 -15 -15 -12 -8 -7 -4 -11 -4 -6 NA [7,] -10 -9 -9 -13 -18 -7 -4 -4 -6 -2 NA [8,] 1 3 5 2 2 3 -6 -4 2 0 NA [9,] 0 6 7 -1 -7 -6 -13 -10 -11 -17 NA [10,] 1 5 3 5 0 2 18 23 28 30 NA [11,] 2 -4 -3 -5 -13 -4 0 3 4 2 NA [12,] 5 5 13 17 17 23 24 20 18 NA NA > arr.mean <- array(NA,dim=par1) > arr.median <- array(NA,dim=par1) > arr.midrange <- array(NA,dim=par1) > for (j in 1:par1) + { + arr.mean[j] <- mean(arr[j,],na.rm=TRUE) + arr.median[j] <- median(arr[j,],na.rm=TRUE) + arr.midrange[j] <- (quantile(arr[j,],0.75,na.rm=TRUE) + quantile(arr[j,],0.25,na.rm=TRUE)) / 2 + } > overall.mean <- mean(x) > overall.median <- median(x) > overall.midrange <- (quantile(x,0.75) + quantile(x,0.25)) / 2 > postscript(file="/var/www/html/rcomp/tmp/10lbq1281377606.ps",horizontal=F,pagecentre=F,paper="special",width=8.3333333333333,height=5.5555555555556) > plot(arr.mean,type='b',ylab='mean',main='Mean Plot',xlab='Periodic Index') > mtext(paste('#blocks = ',np)) > abline(overall.mean,0) > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/20lbq1281377606.ps",horizontal=F,pagecentre=F,paper="special",width=8.3333333333333,height=5.5555555555556) > plot(arr.median,type='b',ylab='median',main='Median Plot',xlab='Periodic Index') > mtext(paste('#blocks = ',np)) > abline(overall.median,0) > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/3tdab1281377606.ps",horizontal=F,pagecentre=F,paper="special",width=8.3333333333333,height=5.5555555555556) > plot(arr.midrange,type='b',ylab='midrange',main='Midrange Plot',xlab='Periodic Index') > mtext(paste('#blocks = ',np)) > abline(overall.midrange,0) > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/4tdab1281377606.ps",horizontal=F,pagecentre=F,paper="special",width=8.3333333333333,height=5.5555555555556) > z <- data.frame(t(arr)) > names(z) <- c(1:par1) > (boxplot(z,notch=TRUE,col='grey',xlab='Periodic Index',ylab='Value',main='Notched Box Plots - Periodic Subseries')) $stats [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [,9] [,10] [,11] [,12] [1,] 93 93 87.0 72.0 83 71 66.0 61.0 63 47.0 77.0 79.0 [2,] 94 94 92.0 90.0 101 90 79.0 75.0 71 61.0 84.0 87.0 [3,] 110 105 98.5 91.5 109 106 94.5 87.5 85 86.5 91.5 89.5 [4,] 119 115 108.0 102.0 121 122 107.0 98.0 103 110.0 113.0 102.0 [5,] 139 136 127.0 117.0 140 146 138.0 121.0 123 122.0 127.0 122.0 $n [1] 10 10 10 10 10 10 10 10 10 10 10 10 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 97.509 94.50756 90.50576 85.50432 99.0072 90.01152 80.51008 76.00828 [2,] 122.491 115.49244 106.49424 97.49568 118.9928 121.98848 108.48992 98.99172 [,9] [,10] [,11] [,12] [1,] 69.01152 62.01765 77.01044 82.0054 [2,] 100.98848 110.98235 105.98956 96.9946 $out [1] 123 $group [1] 4 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" "11" "12" Warning message: In bxp(list(stats = c(93, 94, 110, 119, 139, 93, 94, 105, 115, 136, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/5tdab1281377606.ps",horizontal=F,pagecentre=F,paper="special",width=8.3333333333333,height=5.5555555555556) > z <- data.frame(t(darr)) > names(z) <- c(1:par1) > (boxplot(z,notch=TRUE,col='grey',xlab='Periodic Index',ylab='Value',main='Notched Box Plots - Differenced Periodic Subseries')) $stats [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [,9] [,10] [,11] [,12] [1,] -9.0 -11 -19 8.0 -16 -15.0 -18 -4 -17.0 0 -13.0 5 [2,] -5.0 -8 -13 13.0 -11 -15.0 -10 0 -11.0 2 -4.0 13 [3,] -1.5 -6 -5 17.5 -5 -9.5 -8 2 -6.5 5 -1.5 17 [4,] 1.0 -4 -2 20.0 6 -6.0 -4 3 0.0 23 2.0 20 [5,] 2.0 -1 1 22.0 9 -4.0 -2 5 7.0 30 4.0 24 $n [1] 10 10 10 10 10 10 10 10 10 10 10 9 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] -4.497839 -7.998559 -10.4960386 14.00252 -13.493878 -13.996759 -10.997839 [2,] 1.497839 -4.001441 0.4960386 20.99748 3.493878 -5.003241 -5.002161 [,8] [,9] [,10] [,11] [,12] [1,] 0.5010804 -11.996039 -5.492437 -4.497839 13.31333 [2,] 3.4989196 -1.003961 15.492437 1.497839 20.68667 $out [1] -6 $group [1] 8 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" "11" "12" Warning message: In bxp(list(stats = c(-9, -5, -1.5, 1, 2, -11, -8, -6, -4, -1, -19, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/644re1281377606.ps",horizontal=F,pagecentre=F,paper="special",width=8.3333333333333,height=5.5555555555556) > z <- data.frame(arr) > names(z) <- c(1:np) > (boxplot(z,notch=TRUE,col='grey',xlab='Block Index',ylab='Value',main='Notched Box Plots - Sequential Blocks')) $stats [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [,9] [,10] [,11] [1,] 84.0 82.0 92.0 117.0 102.0 90.0 72.0 61.0 52 47.0 NA [2,] 85.5 88.0 95.0 121.5 117.5 94.5 90.0 77.0 65 65.0 NA [3,] 91.0 90.5 105.0 123.0 125.0 102.0 93.0 88.5 77 74.5 NA [4,] 94.0 93.5 111.5 130.5 138.5 111.5 105.5 102.5 90 85.0 NA [5,] 94.0 94.0 122.0 139.0 146.0 121.0 113.0 115.0 107 102.0 NA $n [1] 12 12 12 12 12 12 12 12 12 12 0 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 87.1231 87.99141 97.47424 118.8950 115.4218 94.24619 85.93035 76.86928 [2,] 94.8769 93.00859 112.52576 127.1050 134.5782 109.75381 100.06965 100.13072 [,9] [,10] [,11] [1,] 65.59733 65.37787 NA [2,] 88.40267 83.62213 NA $out [1] 110 109 104 103 79 146 $group [1] 1 1 2 2 2 4 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" NA Warning message: In bxp(list(stats = c(84, 85.5, 91, 94, 94, 82, 88, 90.5, 93.5, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/744re1281377606.ps",horizontal=F,pagecentre=F,paper="special",width=8.3333333333333,height=5.5555555555556) > z <- data.frame(cbind(arr.mean,arr.median,arr.midrange)) > names(z) <- list('mean','median','midrange') > (boxplot(z,notch=TRUE,col='grey',ylab='Overall Central Tendency',main='Notched Box Plots')) $stats [,1] [,2] [,3] [1,] 84.40 85.0 84.6250 [2,] 91.85 88.5 90.4375 [3,] 96.45 93.0 95.6250 [4,] 107.10 105.5 105.0625 [5,] 110.60 110.0 110.3750 $n [1] 12 12 12 $conf [,1] [,2] [,3] [1,] 89.49437 85.24619 88.95444 [2,] 103.40563 100.75381 102.29556 $out numeric(0) $group numeric(0) $names [1] "mean" "median" "midrange" Warning message: In bxp(list(stats = c(84.4, 91.85, 96.45, 107.1, 110.6, 85, 88.5, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > > try(system("convert tmp/10lbq1281377606.ps tmp/10lbq1281377606.png",intern=TRUE)) character(0) > try(system("convert tmp/20lbq1281377606.ps tmp/20lbq1281377606.png",intern=TRUE)) character(0) > try(system("convert tmp/3tdab1281377606.ps tmp/3tdab1281377606.png",intern=TRUE)) character(0) > try(system("convert tmp/4tdab1281377606.ps tmp/4tdab1281377606.png",intern=TRUE)) character(0) > try(system("convert tmp/5tdab1281377606.ps tmp/5tdab1281377606.png",intern=TRUE)) character(0) > try(system("convert tmp/644re1281377606.ps tmp/644re1281377606.png",intern=TRUE)) character(0) > try(system("convert tmp/744re1281377606.ps tmp/744re1281377606.png",intern=TRUE)) character(0) > > > proc.time() user system elapsed 1.198 0.941 1.555