R version 2.11.1 (2010-05-31) Copyright (C) 2010 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(90,69.3,87.3,57.4,56.2,61.6,77.7,177.2,97.6,81.6,96.8,191.3,106,75.1,72,63.5,57.4,62.3,79.4,178.1,109.3,85.2,102.7,193.7,108.4,73.4,85.9,58.5,58.6,62.7,77.5,180.5,102.2,82.6,97.8,197.8,93.8,72.4,77.7,58.7,53.1,64.3,76.4,188.4,105.5,79.8,96.1,202.5,97.3,89.5,64.7,61.2,57.8,62,76.3,195,110.9,81.4,101.7,202.2,97.4,68.5,86.8,59.1,62.4,66.2,68,198.5,120.4,90.2,103.2,207.3,106.4,75.5,97.3,60,67.5,71.2,73.7,213.3,114.6,96.1,117,229.2,105.6,99.9,79.3,72.5,67.4,78.3,85.7,177.4,113.6,94.1,105.7,228.3,100.3,70.3,94.2,66.5,64.4,73.7,87.9,152.2,97.3,89.3,107.6,228.4) > 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,] 90.0 106.0 108.4 93.8 97.3 97.4 106.4 105.6 100.3 NA [2,] 69.3 75.1 73.4 72.4 89.5 68.5 75.5 99.9 70.3 NA [3,] 87.3 72.0 85.9 77.7 64.7 86.8 97.3 79.3 94.2 NA [4,] 57.4 63.5 58.5 58.7 61.2 59.1 60.0 72.5 66.5 NA [5,] 56.2 57.4 58.6 53.1 57.8 62.4 67.5 67.4 64.4 NA [6,] 61.6 62.3 62.7 64.3 62.0 66.2 71.2 78.3 73.7 NA [7,] 77.7 79.4 77.5 76.4 76.3 68.0 73.7 85.7 87.9 NA [8,] 177.2 178.1 180.5 188.4 195.0 198.5 213.3 177.4 152.2 NA [9,] 97.6 109.3 102.2 105.5 110.9 120.4 114.6 113.6 97.3 NA [10,] 81.6 85.2 82.6 79.8 81.4 90.2 96.1 94.1 89.3 NA [11,] 96.8 102.7 97.8 96.1 101.7 103.2 117.0 105.7 107.6 NA [12,] 191.3 193.7 197.8 202.5 202.2 207.3 229.2 228.3 228.4 NA > darr [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [,9] [,10] [1,] -20.7 -30.9 -35.0 -21.4 -7.8 -28.9 -30.9 -5.7 -30.0 NA [2,] 18.0 -3.1 12.5 5.3 -24.8 18.3 21.8 -20.6 23.9 NA [3,] -29.9 -8.5 -27.4 -19.0 -3.5 -27.7 -37.3 -6.8 -27.7 NA [4,] -1.2 -6.1 0.1 -5.6 -3.4 3.3 7.5 -5.1 -2.1 NA [5,] 5.4 4.9 4.1 11.2 4.2 3.8 3.7 10.9 9.3 NA [6,] 16.1 17.1 14.8 12.1 14.3 1.8 2.5 7.4 14.2 NA [7,] 99.5 98.7 103.0 112.0 118.7 130.5 139.6 91.7 64.3 NA [8,] -79.6 -68.8 -78.3 -82.9 -84.1 -78.1 -98.7 -63.8 -54.9 NA [9,] -16.0 -24.1 -19.6 -25.7 -29.5 -30.2 -18.5 -19.5 -8.0 NA [10,] 15.2 17.5 15.2 16.3 20.3 13.0 20.9 11.6 18.3 NA [11,] 94.5 91.0 100.0 106.4 100.5 104.1 112.2 122.6 120.8 NA [12,] -85.3 -85.3 -104.0 -105.2 -104.8 -100.9 -123.6 -128.0 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/rcomp/tmp/1pajx1289763463.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/rcomp/tmp/2pajx1289763463.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/rcomp/tmp/3i2101289763463.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/rcomp/tmp/4i2101289763463.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,] 90.0 68.5 64.7 57.4 53.1 61.6 73.7 152.2 97.3 79.8 96.1 191.3 [2,] 97.3 70.3 77.7 58.7 57.4 62.3 76.3 177.4 102.2 81.6 97.8 197.8 [3,] 100.3 73.4 85.9 60.0 58.6 64.3 77.5 180.5 109.3 85.2 102.7 202.5 [4,] 106.0 75.5 87.3 63.5 64.4 71.2 79.4 195.0 113.6 90.2 105.7 228.3 [5,] 108.4 75.5 97.3 66.5 67.5 78.3 79.4 213.3 120.4 96.1 117.0 229.2 $n [1] 9 9 9 9 9 9 9 9 9 9 9 9 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [,9] [1,] 95.718 70.66133 80.844 57.472 54.91333 59.61267 75.86733 171.2307 103.296 [2,] 104.882 76.13867 90.956 62.528 62.28667 68.98733 79.13267 189.7693 115.304 [,10] [,11] [,12] [1,] 80.67067 98.53933 186.4367 [2,] 89.72933 106.86067 218.5633 $out [1] 89.5 99.9 72.5 68.0 85.7 87.9 $group [1] 2 2 4 7 7 7 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" "11" "12" Warning message: In bxp(list(stats = c(90, 97.3, 100.3, 106, 108.4, 68.5, 70.3, 73.4, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/rcomp/tmp/5i2101289763463.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,] -35.0 -24.8 -37.3 -6.1 3.7 1.8 91.7 -98.7 -30.2 11.6 91.0 -128.0 [2,] -30.9 -3.1 -27.7 -5.1 4.1 7.4 98.7 -82.9 -25.7 15.2 100.0 -114.4 [3,] -28.9 12.5 -27.4 -2.1 4.9 14.2 103.0 -78.3 -19.6 16.3 104.1 -104.4 [4,] -20.7 18.3 -8.5 0.1 9.3 14.8 118.7 -68.8 -18.5 18.3 112.2 -93.1 [5,] -5.7 23.9 -3.5 7.5 11.2 17.1 139.6 -54.9 -8.0 20.9 122.6 -85.3 $n [1] 9 9 9 9 9 9 9 9 9 9 9 8 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] -34.272 1.229333 -37.512 -4.8386667 2.161333 10.30267 92.46667 -85.726 [2,] -23.528 23.770667 -17.288 0.6386667 7.638667 18.09733 113.53333 -70.874 [,9] [,10] [,11] [,12] [1,] -23.392 14.66733 97.67467 -116.29849 [2,] -15.808 17.93267 110.52533 -92.50151 $out [1] 64.3 $group [1] 7 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" "11" "12" Warning message: In bxp(list(stats = c(-35, -30.9, -28.9, -20.7, -5.69999999999999, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/rcomp/tmp/6tb0l1289763463.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,] 56.20 57.40 58.50 53.10 57.80 59.1 60.00 67.40 64.40 NA [2,] 65.45 67.75 68.05 68.35 63.35 67.1 72.45 78.80 72.00 NA [3,] 84.45 82.30 84.25 78.75 85.45 88.5 96.70 97.00 91.75 NA [4,] 97.20 107.65 105.30 100.80 106.30 111.8 115.80 109.65 103.95 NA [5,] 97.60 109.30 108.40 105.50 110.90 120.4 117.00 113.60 107.60 NA $n [1] 12 12 12 12 12 12 12 12 12 0 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] 69.96861 64.10134 67.26002 63.94934 65.86022 68.11203 76.92777 [2,] 98.93139 100.49866 101.23998 93.55066 105.03978 108.88797 116.47223 [,8] [,9] [,10] [1,] 82.9291 77.17739 NA [2,] 111.0709 106.32261 NA $out [1] 177.2 191.3 178.1 193.7 180.5 197.8 188.4 202.5 195.0 202.2 198.5 207.3 [13] 213.3 229.2 177.4 228.3 152.2 228.4 $group [1] 1 1 2 2 3 3 4 4 5 5 6 6 7 7 8 8 9 9 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" NA Warning message: In bxp(list(stats = c(56.2, 65.45, 84.45, 97.2, 97.6, 57.4, 67.75, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/rcomp/tmp/7tb0l1289763463.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,] 60.53333 58.60 60.900 [2,] 72.01111 68.85 69.825 [3,] 84.75000 85.55 84.200 [4,] 105.55556 106.00 104.825 [5,] 107.93333 109.30 107.900 $n [1] 12 12 12 $conf [,1] [,2] [,3] [1,] 69.45015 68.60564 68.23627 [2,] 100.04985 102.49436 100.16373 $out [1] 184.5111 208.9667 180.5000 202.5000 186.2000 213.0500 $group [1] 1 1 2 2 3 3 $names [1] "mean" "median" "midrange" Warning message: In bxp(list(stats = c(60.5333333333333, 72.0111111111111, 84.75, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > > try(system("convert tmp/1pajx1289763463.ps tmp/1pajx1289763463.png",intern=TRUE)) character(0) > try(system("convert tmp/2pajx1289763463.ps tmp/2pajx1289763463.png",intern=TRUE)) character(0) > try(system("convert tmp/3i2101289763463.ps tmp/3i2101289763463.png",intern=TRUE)) character(0) > try(system("convert tmp/4i2101289763463.ps tmp/4i2101289763463.png",intern=TRUE)) character(0) > try(system("convert tmp/5i2101289763463.ps tmp/5i2101289763463.png",intern=TRUE)) character(0) > try(system("convert tmp/6tb0l1289763463.ps tmp/6tb0l1289763463.png",intern=TRUE)) character(0) > try(system("convert tmp/7tb0l1289763463.ps tmp/7tb0l1289763463.png",intern=TRUE)) character(0) > > > proc.time() user system elapsed 1.950 0.600 2.551