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(84.9,81.9,95.9,81,89.2,102.5,89.8,88.8,83.2,90.2,100.4,187.1,87.6,85.4,86.1,86.7,89.1,103.7,86.9,85.2,80.8,91.2,102.8,182.5,80.9,83.1,88.3,86.6,93,105.3,93.8,86.4,87,96.7,100.5,196.7,86.8,88.2,93.8,85,90.4,115.9,94.9,87.7,91.7,95.9,106.8,204.5,90.2,90.5,93.2,97.8,99.4,120,108.2,98.5,104.3,102.9,111.1,188.1,93.8,94.5,112.4,102.5,115.8,136.5,122.1,110.6,116.4,112.6,121.5,199.3,102.1,100.6,119,106.8,121.3,145.5,129.7,117.7,121.3,124.3,135.2,210.1,106.8,110.5,111.5,122.1,126.3,143.2,137.3,121.5,121.9,123.9,131.6,220.9) > 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] 96 > (np <- floor(n / par1)) [1] 8 > 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] 8 8 8 8 8 8 8 8 8 8 8 8 > arr [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [,9] [1,] 84.9 87.6 80.9 86.8 90.2 93.8 102.1 106.8 NA [2,] 81.9 85.4 83.1 88.2 90.5 94.5 100.6 110.5 NA [3,] 95.9 86.1 88.3 93.8 93.2 112.4 119.0 111.5 NA [4,] 81.0 86.7 86.6 85.0 97.8 102.5 106.8 122.1 NA [5,] 89.2 89.1 93.0 90.4 99.4 115.8 121.3 126.3 NA [6,] 102.5 103.7 105.3 115.9 120.0 136.5 145.5 143.2 NA [7,] 89.8 86.9 93.8 94.9 108.2 122.1 129.7 137.3 NA [8,] 88.8 85.2 86.4 87.7 98.5 110.6 117.7 121.5 NA [9,] 83.2 80.8 87.0 91.7 104.3 116.4 121.3 121.9 NA [10,] 90.2 91.2 96.7 95.9 102.9 112.6 124.3 123.9 NA [11,] 100.4 102.8 100.5 106.8 111.1 121.5 135.2 131.6 NA [12,] 187.1 182.5 196.7 204.5 188.1 199.3 210.1 220.9 NA > darr [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [,9] [1,] -3.0 -2.2 2.2 1.4 0.3 0.7 -1.5 3.7 NA [2,] 14.0 0.7 5.2 5.6 2.7 17.9 18.4 1.0 NA [3,] -14.9 0.6 -1.7 -8.8 4.6 -9.9 -12.2 10.6 NA [4,] 8.2 2.4 6.4 5.4 1.6 13.3 14.5 4.2 NA [5,] 13.3 14.6 12.3 25.5 20.6 20.7 24.2 16.9 NA [6,] -12.7 -16.8 -11.5 -21.0 -11.8 -14.4 -15.8 -5.9 NA [7,] -1.0 -1.7 -7.4 -7.2 -9.7 -11.5 -12.0 -15.8 NA [8,] -5.6 -4.4 0.6 4.0 5.8 5.8 3.6 0.4 NA [9,] 7.0 10.4 9.7 4.2 -1.4 -3.8 3.0 2.0 NA [10,] 10.2 11.6 3.8 10.9 8.2 8.9 10.9 7.7 NA [11,] 86.7 79.7 96.2 97.7 77.0 77.8 74.9 89.3 NA [12,] -99.5 -101.6 -109.9 -114.3 -94.3 -97.2 -103.3 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/101av1259452873.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/2g9d41259452873.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/350h01259452873.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/4c9ld1259452873.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] [1,] 80.90 81.90 86.10 81.00 89.10 102.50 86.90 85.20 80.80 90.20 [2,] 85.85 84.25 90.75 85.80 89.80 104.50 91.80 87.05 85.10 93.55 [3,] 88.90 89.35 94.85 92.25 96.20 117.95 101.55 93.65 98.00 99.80 [4,] 97.95 97.55 111.95 104.65 118.55 139.85 125.90 114.15 118.85 118.25 [5,] 106.80 110.50 119.00 122.10 126.30 145.50 137.30 121.50 121.90 124.30 [,11] [,12] [1,] 100.40 182.5 [2,] 101.65 187.6 [3,] 108.95 198.0 [4,] 126.55 207.3 [5,] 135.20 220.9 $n [1] 8 8 8 8 8 8 8 8 8 8 8 8 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] 82.14077 81.92043 83.00738 81.72012 80.13984 98.20298 82.50125 [2,] 95.65923 96.77957 106.69262 102.77988 112.26016 137.69702 120.59875 [,8] [,9] [,10] [,11] [,12] [1,] 78.51155 79.14677 86.00223 95.0405 186.9953 [2,] 108.78845 116.85323 113.59777 122.8595 209.0047 $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(80.9, 85.85, 88.9, 97.95, 106.8, 81.9, 84.25, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/58s3z1259452873.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] [1,] -3.00 0.70 -14.90 1.60 12.30 -21.00 -15.80 -5.6 -3.80 3.80 74.90 [2,] -1.85 1.85 -11.05 3.30 13.95 -16.30 -11.75 -2.0 0.30 7.95 77.40 [3,] 0.50 5.40 -5.25 5.90 18.75 -13.55 -8.55 2.1 3.60 9.55 83.20 [4,] 1.80 15.95 2.60 10.75 22.45 -11.65 -4.45 4.9 8.35 10.90 92.75 [5,] 3.70 18.40 10.60 14.50 25.50 -5.90 -1.00 5.8 10.40 11.60 97.70 [,12] [1,] -114.30 [2,] -106.60 [3,] -101.60 [4,] -98.35 [5,] -94.30 $n [1] 8 8 8 8 8 8 8 8 8 8 8 7 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] -1.538942 -2.476462 -12.875086 1.738323 14.00178 -16.14756 -12.627885 [2,] 2.538942 13.276462 2.375086 10.061677 23.49822 -10.95244 -4.472115 [,8] [,9] [,10] [,11] [,12] [1,] -1.754439 -0.8968456 7.902088 74.62527 -106.52677 [2,] 5.954439 8.0968456 11.197912 91.77473 -96.67323 $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(-3, -1.84999999999999, 0.5, 1.80000000000000, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/6kic81259452873.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] [1,] 81.00 80.80 80.90 85.00 90.20 93.80 100.60 106.80 NA [2,] 84.05 85.75 86.50 87.95 95.50 106.55 112.25 116.50 NA [3,] 89.50 87.25 90.65 92.75 101.15 114.20 121.30 123.00 NA [4,] 98.15 97.00 98.60 101.35 109.65 121.80 132.45 134.45 NA [5,] 102.50 103.70 105.30 115.90 120.00 136.50 145.50 143.20 NA $n [1] 12 12 12 12 12 12 12 12 0 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 83.0689 82.1188 85.13111 86.63817 94.69609 107.2444 112.0866 114.8129 [2,] 95.9311 92.3812 96.16889 98.86183 107.60391 121.1556 130.5134 131.1871 [,9] [1,] NA [2,] NA $out [1] 187.1 182.5 196.7 204.5 188.1 199.3 210.1 220.9 $group [1] 1 2 3 4 5 6 7 8 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" NA Warning message: In bxp(list(stats = c(81, 84.05, 89.5, 98.15, 102.5, 80.8, 85.75, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/75kgg1259452873.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,] 91.63750 88.90 90.42500 [2,] 97.80625 92.95 97.38125 [3,] 101.94375 97.10 102.74375 [4,] 110.78750 105.25 110.76250 [5,] 121.57500 117.95 121.53750 $n [1] 12 12 12 $conf [,1] [,2] [,3] [1,] 96.02291 91.48989 96.64047 [2,] 107.86459 102.71011 108.84703 $out [1] 198.650 198.000 196.875 $group [1] 1 2 3 $names [1] "mean" "median" "midrange" Warning message: In bxp(list(stats = c(91.6375, 97.80625, 101.94375, 110.7875, 121.575, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > > system("convert tmp/101av1259452873.ps tmp/101av1259452873.png") > system("convert tmp/2g9d41259452873.ps tmp/2g9d41259452873.png") > system("convert tmp/350h01259452873.ps tmp/350h01259452873.png") > system("convert tmp/4c9ld1259452873.ps tmp/4c9ld1259452873.png") > system("convert tmp/58s3z1259452873.ps tmp/58s3z1259452873.png") > system("convert tmp/6kic81259452873.ps tmp/6kic81259452873.png") > system("convert tmp/75kgg1259452873.ps tmp/75kgg1259452873.png") > > > proc.time() user system elapsed 1.188 0.952 1.598