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(78.1,66.7,79,65.2,66.5,77.2,80.2,77.9,78,86.8,92.9,185.8,91,79.1,84.2,70.1,71.3,79.6,92.3,78.7,82.5,98.2,115.4,205.6,94,83.2,80.3,70.4,71.1,78.8,86.3,77.5,80.1,89.8,99.9,218,85.4,77.5,78.6,68.8,64.8,79.8,94.3,79.9,87.5,99.1,109.9,273.6,91.3,80.6,80.4,71.8,75.5,86.6,91.5,86.8,84.6,88.6,102.1,260.3,79,70.6,79.3,66.8,61.2,72.5,83.5,75.8,83.4,89.4,104.9,251.6,80,76.3,81.1,63.1,63.5,78.8,91.7,83.8,83.8,95.8,108.9,258.2,88.7,79.5,74.3,70.5,59.1,73.2,81.2,75,74.6,89.5,107,246.4,83.6,72.1,68.7,60.1,61.1,72.7,85.3,71.4,75.2,89.8,100.9,222.7) > 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] 108 > (np <- floor(n / par1)) [1] 9 > 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] 9 9 9 9 9 9 9 9 9 9 9 9 > arr [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [,9] [,10] [1,] 78.1 91.0 94.0 85.4 91.3 79.0 80.0 88.7 83.6 NA [2,] 66.7 79.1 83.2 77.5 80.6 70.6 76.3 79.5 72.1 NA [3,] 79.0 84.2 80.3 78.6 80.4 79.3 81.1 74.3 68.7 NA [4,] 65.2 70.1 70.4 68.8 71.8 66.8 63.1 70.5 60.1 NA [5,] 66.5 71.3 71.1 64.8 75.5 61.2 63.5 59.1 61.1 NA [6,] 77.2 79.6 78.8 79.8 86.6 72.5 78.8 73.2 72.7 NA [7,] 80.2 92.3 86.3 94.3 91.5 83.5 91.7 81.2 85.3 NA [8,] 77.9 78.7 77.5 79.9 86.8 75.8 83.8 75.0 71.4 NA [9,] 78.0 82.5 80.1 87.5 84.6 83.4 83.8 74.6 75.2 NA [10,] 86.8 98.2 89.8 99.1 88.6 89.4 95.8 89.5 89.8 NA [11,] 92.9 115.4 99.9 109.9 102.1 104.9 108.9 107.0 100.9 NA [12,] 185.8 205.6 218.0 273.6 260.3 251.6 258.2 246.4 222.7 NA > darr [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [,9] [,10] [1,] -11.4 -11.9 -10.8 -7.9 -10.7 -8.4 -3.7 -9.2 -11.5 NA [2,] 12.3 5.1 -2.9 1.1 -0.2 8.7 4.8 -5.2 -3.4 NA [3,] -13.8 -14.1 -9.9 -9.8 -8.6 -12.5 -18.0 -3.8 -8.6 NA [4,] 1.3 1.2 0.7 -4.0 3.7 -5.6 0.4 -11.4 1.0 NA [5,] 10.7 8.3 7.7 15.0 11.1 11.3 15.3 14.1 11.6 NA [6,] 3.0 12.7 7.5 14.5 4.9 11.0 12.9 8.0 12.6 NA [7,] -2.3 -13.6 -8.8 -14.4 -4.7 -7.7 -7.9 -6.2 -13.9 NA [8,] 0.1 3.8 2.6 7.6 -2.2 7.6 0.0 -0.4 3.8 NA [9,] 8.8 15.7 9.7 11.6 4.0 6.0 12.0 14.9 14.6 NA [10,] 6.1 17.2 10.1 10.8 13.5 15.5 13.1 17.5 11.1 NA [11,] 92.9 90.2 118.1 163.7 158.2 146.7 149.3 139.4 121.8 NA [12,] -94.8 -111.6 -132.6 -182.3 -181.3 -171.6 -169.5 -162.8 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/1k6tx1289729373.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/2k6tx1289729373.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/3k6tx1289729373.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/4cxa01289729373.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,] 78.1 66.7 78.6 60.1 59.1 72.5 80.2 71.4 74.6 86.8 92.9 185.8 [2,] 80.0 72.1 78.6 65.2 61.2 73.2 83.5 75.8 78.0 89.4 100.9 218.0 [3,] 85.4 77.5 79.3 68.8 64.8 78.8 86.3 77.9 82.5 89.8 104.9 246.4 [4,] 91.0 79.5 80.4 70.4 71.1 79.6 91.7 79.9 83.8 95.8 108.9 258.2 [5,] 94.0 83.2 81.1 71.8 75.5 86.6 94.3 83.8 87.5 99.1 115.4 273.6 $n [1] 9 9 9 9 9 9 9 9 9 9 9 9 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 79.60667 73.60267 78.352 66.06133 59.586 75.42933 81.98133 75.74067 [2,] 91.19333 81.39733 80.248 71.53867 70.014 82.17067 90.61867 80.05933 [,9] [,10] [,11] [,12] [1,] 79.44533 86.42933 100.6867 225.228 [2,] 85.55467 93.17067 109.1133 267.572 $out [1] 84.2 74.3 68.7 86.8 $group [1] 3 3 3 8 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" "11" "12" Warning message: In bxp(list(stats = c(78.1, 80, 85.4, 91, 94, 66.7, 72.1, 77.5, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/5cxa01289729373.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,] -11.9 -5.2 -18.0 -11.4 7.7 3.0 -14.4 -2.2 4.0 6.1 90.2 -182.30 [2,] -11.4 -2.9 -13.8 -4.0 10.7 7.5 -13.6 0.0 8.8 10.8 118.1 -176.45 [3,] -10.7 1.1 -9.9 0.7 11.3 11.0 -7.9 2.6 11.6 13.1 139.4 -166.15 [4,] -8.4 5.1 -8.6 1.2 14.1 12.7 -6.2 3.8 14.6 15.5 149.3 -122.10 [5,] -7.9 12.3 -3.8 3.7 15.3 14.5 -2.3 7.6 15.7 17.5 163.7 -94.80 $n [1] 9 9 9 9 9 9 9 9 9 9 9 8 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] -12.28 -3.113333 -12.638667 -2.038667 9.509333 8.261333 -11.797333 [2,] -9.12 5.313333 -7.161333 3.438667 13.090667 13.738667 -4.002667 [,8] [,9] [,10] [,11] [,12] [1,] 0.5986667 8.545333 10.62467 122.968 -196.5107 [2,] 4.6013333 14.654667 15.57533 155.832 -135.7893 $out [1] -3.7 $group [1] 1 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" "11" "12" Warning message: In bxp(list(stats = c(-11.9, -11.4, -10.7, -8.4, -7.9, -5.2, -2.90000000000001, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/656sl1289729373.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] [1,] 65.20 70.10 70.40 64.80 71.8 61.20 63.10 59.10 60.10 NA [2,] 71.95 78.90 78.15 78.05 80.5 71.55 77.55 73.75 70.05 NA [3,] 78.05 83.35 81.75 82.65 86.7 79.15 82.45 77.25 73.95 NA [4,] 83.50 95.25 91.90 96.70 91.4 86.45 93.75 89.10 87.55 NA [5,] 92.90 115.40 99.90 109.90 102.1 104.90 108.90 107.00 100.90 NA $n [1] 12 12 12 12 12 12 12 12 12 0 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 72.78197 75.89266 75.47853 74.14361 81.72844 72.35401 75.06107 70.24876 [2,] 83.31803 90.80734 88.02147 91.15639 91.67156 85.94599 89.83893 84.25124 [,9] [,10] [1,] 65.96813 NA [2,] 81.93187 NA $out [1] 185.8 205.6 218.0 273.6 260.3 251.6 258.2 246.4 222.7 $group [1] 1 2 3 4 5 6 7 8 9 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" NA Warning message: In bxp(list(stats = c(65.2, 71.95, 78.05, 83.5, 92.9, 70.1, 78.9, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/756sl1289729373.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,] 66.01111 64.80 66.15 [2,] 76.93333 77.70 76.10 [3,] 79.80556 80.90 80.20 [4,] 89.62778 88.05 90.10 [5,] 104.65556 89.80 104.90 $n [1] 12 12 12 $conf [,1] [,2] [,3] [1,] 74.01553 76.1793 73.8145 [2,] 85.59558 85.6207 86.5855 $out [1] 235.8 104.9 246.4 238.1 $group [1] 1 2 2 3 $names [1] "mean" "median" "midrange" Warning message: In bxp(list(stats = c(66.0111111111111, 76.9333333333333, 79.8055555555556, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > > try(system("convert tmp/1k6tx1289729373.ps tmp/1k6tx1289729373.png",intern=TRUE)) character(0) > try(system("convert tmp/2k6tx1289729373.ps tmp/2k6tx1289729373.png",intern=TRUE)) character(0) > try(system("convert tmp/3k6tx1289729373.ps tmp/3k6tx1289729373.png",intern=TRUE)) character(0) > try(system("convert tmp/4cxa01289729373.ps tmp/4cxa01289729373.png",intern=TRUE)) character(0) > try(system("convert tmp/5cxa01289729373.ps tmp/5cxa01289729373.png",intern=TRUE)) character(0) > try(system("convert tmp/656sl1289729373.ps tmp/656sl1289729373.png",intern=TRUE)) character(0) > try(system("convert tmp/756sl1289729373.ps tmp/756sl1289729373.png",intern=TRUE)) character(0) > > > proc.time() user system elapsed 1.210 0.949 1.551