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(93,92,91,89,87,86,87,89,90,90,91,93,93,87,89,92,98,92,92,87,92,98,101,102,102,90,87,92,105,90,88,83,98,109,118,118,115,107,101,111,128,115,111,105,120,132,135,142,139,127,113,130,143,139,137,134,139,157,152,153,147,132,117,123,139,134,134,128,118,144,140,151,144,135,122,124,146,146,147,148,132,161,159,173) > 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] 84 > (np <- floor(n / par1)) [1] 7 > 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] 7 7 7 7 7 7 7 7 7 7 7 7 > arr [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 93 93 102 115 139 147 144 NA [2,] 92 87 90 107 127 132 135 NA [3,] 91 89 87 101 113 117 122 NA [4,] 89 92 92 111 130 123 124 NA [5,] 87 98 105 128 143 139 146 NA [6,] 86 92 90 115 139 134 146 NA [7,] 87 92 88 111 137 134 147 NA [8,] 89 87 83 105 134 128 148 NA [9,] 90 92 98 120 139 118 132 NA [10,] 90 98 109 132 157 144 161 NA [11,] 91 101 118 135 152 140 159 NA [12,] 93 102 118 142 153 151 173 NA > darr [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] -1 -6 -12 -8 -12 -15 -9 NA [2,] -1 2 -3 -6 -14 -15 -13 NA [3,] -2 3 5 10 17 6 2 NA [4,] -2 6 13 17 13 16 22 NA [5,] -1 -6 -15 -13 -4 -5 0 NA [6,] 1 0 -2 -4 -2 0 1 NA [7,] 2 -5 -5 -6 -3 -6 1 NA [8,] 1 5 15 15 5 -10 -16 NA [9,] 0 6 11 12 18 26 29 NA [10,] 1 3 9 3 -5 -4 -2 NA [11,] 2 1 0 7 1 11 14 NA [12,] 0 0 -3 -3 -6 -7 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/1dlcw1282053319.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/2dlcw1282053319.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/35dbz1282053319.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/45dbz1282053319.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.0 87.0 87 89.0 87.0 86.0 87.0 83 90 90.0 91.0 93 [2,] 97.5 91.0 90 92.0 101.5 91.0 90.0 88 95 103.5 109.5 110 [3,] 115.0 107.0 101 111.0 128.0 115.0 111.0 105 118 132.0 135.0 142 [4,] 141.5 129.5 115 123.5 141.0 136.5 135.5 131 126 150.5 146.0 152 [5,] 147.0 135.0 122 130.0 146.0 146.0 147.0 148 139 161.0 159.0 173 $n [1] 7 7 7 7 7 7 7 7 7 7 7 7 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] 88.72391 84.00842 86.0704 92.1887 104.4112 87.82813 83.82813 [2,] 141.27609 129.99158 115.9296 129.8113 151.5888 142.17187 138.17187 [,8] [,9] [,10] [,11] [,12] [1,] 79.3211 99.4873 103.9324 113.2028 116.9183 [2,] 130.6789 136.5127 160.0676 156.7972 167.0817 $out numeric(0) $group numeric(0) $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" "11" "12" Warning message: In bxp(list(stats = c(93, 97.5, 115, 141.5, 147, 87, 91, 107, 129.5, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/55dbz1282053319.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,] -15 -15.0 -2.0 6.0 -15.0 -4.0 -6.0 -16.0 0.0 -5 0 -7 [2,] -12 -13.5 2.5 9.5 -9.5 -2.0 -5.5 -4.5 8.5 -3 1 -6 [3,] -9 -6.0 5.0 13.0 -5.0 0.0 -5.0 5.0 12.0 1 2 -3 [4,] -7 -2.0 8.0 16.5 -2.5 0.5 -1.0 10.0 22.0 3 9 0 [5,] -1 2.0 10.0 22.0 0.0 1.0 2.0 15.0 29.0 9 14 0 $n [1] 7 7 7 7 7 7 7 7 7 7 7 6 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] -11.985919 -12.8676145 1.715489 8.819713 -9.180287 -1.492960 -7.687327 [2,] -6.014081 0.8676145 8.284511 17.180287 -0.819713 1.492960 -2.312673 [,8] [,9] [,10] [,11] [,12] [1,] -3.659166 3.938018 -2.583103 -2.777471 -6.8701938 [2,] 13.659166 20.061982 4.583103 6.777471 0.8701938 $out [1] 17 -2 $group [1] 3 4 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" "11" "12" Warning message: In bxp(list(stats = c(-15, -12, -9, -7, -1, -15, -13.5, -6, -2, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/6rwvf1282053320.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] [1,] 86.0 87.0 83 101 113.0 117.0 122.0 NA [2,] 88.0 90.5 89 109 132.0 125.5 133.5 NA [3,] 90.0 92.0 95 115 139.0 134.0 146.0 NA [4,] 91.5 98.0 107 130 147.5 142.0 153.5 NA [5,] 93.0 102.0 118 142 157.0 151.0 173.0 NA $n [1] 12 12 12 12 12 12 12 0 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 88.40363 88.5792 86.79008 105.4218 131.9303 126.4742 136.8779 NA [2,] 91.59637 95.4208 103.20992 124.5782 146.0697 141.5258 155.1221 NA $out numeric(0) $group numeric(0) $names [1] "1" "2" "3" "4" "5" "6" "7" NA Warning message: In bxp(list(stats = c(86, 88, 90, 91.5, 93, 87, 90.5, 92, 98, 102, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/7rwvf1282053320.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,] 102.8571 101 102.500 [2,] 110.2857 109 109.875 [3,] 114.1429 115 113.250 [4,] 124.0714 130 124.125 [5,] 133.1429 142 131.000 $n [1] 12 12 12 $conf [,1] [,2] [,3] [1,] 107.8551 105.4218 106.7505 [2,] 120.4306 124.5782 119.7495 $out numeric(0) $group numeric(0) $names [1] "mean" "median" "midrange" Warning message: In bxp(list(stats = c(102.857142857143, 110.285714285714, 114.142857142857, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > > try(system("convert tmp/1dlcw1282053319.ps tmp/1dlcw1282053319.png",intern=TRUE)) character(0) > try(system("convert tmp/2dlcw1282053319.ps tmp/2dlcw1282053319.png",intern=TRUE)) character(0) > try(system("convert tmp/35dbz1282053319.ps tmp/35dbz1282053319.png",intern=TRUE)) character(0) > try(system("convert tmp/45dbz1282053319.ps tmp/45dbz1282053319.png",intern=TRUE)) character(0) > try(system("convert tmp/55dbz1282053319.ps tmp/55dbz1282053319.png",intern=TRUE)) character(0) > try(system("convert tmp/6rwvf1282053320.ps tmp/6rwvf1282053320.png",intern=TRUE)) character(0) > try(system("convert tmp/7rwvf1282053320.ps tmp/7rwvf1282053320.png",intern=TRUE)) character(0) > > > proc.time() user system elapsed 1.188 0.956 1.633