R version 2.8.0 (2008-10-20) Copyright (C) 2008 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(138.3,112.8,123.2,132.6,118.6,134.4,128.2,124.8,124.9,129.2,132.2,137.4,127.7,122.2,121.1,134.4,124.3,119.1,137.8,120.5,122.7,127.2,133.2,136.3,134.9,120.9,109.4,129.6,124.7,114.6,137.4,117.9,117.4,122,124.8,123.3,132.8,115.1,104.2,125.5,116.8,116.8,125.5,110.9,114.9,136.4,125.8,126.5,134,116.1,115,130.3,106.5,111.6,125,108.3,105,127.4,116.6,128.6,127.5,108.4,110.8,114.2,101.8,109.8,115.9,106.9,114.6,105.4,108.1,118.4,112.7,98.4,99.6,103.9,101.5,100.8,104.5,98.2,99.9,97.5,105.7,117.7,107.4,98.4,92,107.7,100.2,96.7,106.8,98,98.6) > 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] 93 > (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] 8 8 8 8 8 8 8 8 8 7 7 7 > arr [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 138.3 127.7 134.9 132.8 134.0 127.5 112.7 107.4 [2,] 112.8 122.2 120.9 115.1 116.1 108.4 98.4 98.4 [3,] 123.2 121.1 109.4 104.2 115.0 110.8 99.6 92.0 [4,] 132.6 134.4 129.6 125.5 130.3 114.2 103.9 107.7 [5,] 118.6 124.3 124.7 116.8 106.5 101.8 101.5 100.2 [6,] 134.4 119.1 114.6 116.8 111.6 109.8 100.8 96.7 [7,] 128.2 137.8 137.4 125.5 125.0 115.9 104.5 106.8 [8,] 124.8 120.5 117.9 110.9 108.3 106.9 98.2 98.0 [9,] 124.9 122.7 117.4 114.9 105.0 114.6 99.9 98.6 [10,] 129.2 127.2 122.0 136.4 127.4 105.4 97.5 NA [11,] 132.2 133.2 124.8 125.8 116.6 108.1 105.7 NA [12,] 137.4 136.3 123.3 126.5 128.6 118.4 117.7 NA > darr [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] -25.5 -5.5 -14.0 -17.7 -17.9 -19.1 -14.3 -9.0 [2,] 10.4 -1.1 -11.5 -10.9 -1.1 2.4 1.2 -6.4 [3,] 9.4 13.3 20.2 21.3 15.3 3.4 4.3 15.7 [4,] -14.0 -10.1 -4.9 -8.7 -23.8 -12.4 -2.4 -7.5 [5,] 15.8 -5.2 -10.1 0.0 5.1 8.0 -0.7 -3.5 [6,] -6.2 18.7 22.8 8.7 13.4 6.1 3.7 10.1 [7,] -3.4 -17.3 -19.5 -14.6 -16.7 -9.0 -6.3 -8.8 [8,] 0.1 2.2 -0.5 4.0 -3.3 7.7 1.7 0.6 [9,] 4.3 4.5 4.6 21.5 22.4 -9.2 -2.4 NA [10,] 3.0 6.0 2.8 -10.6 -10.8 2.7 8.2 NA [11,] 5.2 3.1 -1.5 0.7 12.0 10.3 12.0 NA [12,] -9.7 -1.4 9.5 7.5 -1.1 -5.7 -10.3 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/1kvdp1229672445.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/2zl1g1229672445.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/3st7v1229672445.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/42pvt1229672445.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,] 107.40 98.40 92.00 103.90 100.20 96.70 104.50 98.00 98.60 97.5 [2,] 120.10 103.40 101.90 110.95 101.65 105.30 111.35 102.55 102.45 113.7 [3,] 130.25 113.95 110.10 127.55 111.65 113.10 125.25 109.60 114.75 127.2 [4,] 134.45 118.50 118.05 131.45 121.45 117.95 132.80 119.20 120.05 128.3 [5,] 138.30 122.20 123.20 134.40 124.70 134.40 137.80 124.80 124.90 136.4 [,11] [,12] [1,] 105.70 117.70 [2,] 112.35 120.85 [3,] 124.80 126.50 [4,] 129.00 132.45 [5,] 133.20 137.40 $n [1] 8 8 8 8 8 8 8 8 8 7 7 7 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 122.2339 105.5149 101.0784 116.0984 100.5894 106.0335 113.2677 100.2991 [2,] 138.2661 122.3851 119.1216 139.0016 122.7106 120.1665 137.2323 118.9009 [,9] [,10] [,11] [,12] [1,] 104.9184 118.4811 114.8569 119.5727 [2,] 124.5816 135.9189 134.7431 133.4273 $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(107.4, 120.1, 130.25, 134.45, 138.3, 98.4, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/5izlj1229672445.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,] -25.5 -11.50 3.40 -14.0 -10.10 -6.20 -19.50 -3.30 -9.20 -10.80 -1.50 [2,] -18.5 -8.65 6.85 -13.2 -4.35 4.90 -17.00 -0.20 0.95 -3.95 1.90 [3,] -16.0 -1.10 14.30 -9.4 -0.35 9.40 -11.80 1.15 4.50 2.80 5.20 [4,] -11.5 1.80 17.95 -6.2 6.55 16.05 -7.55 3.10 13.05 4.50 11.15 [5,] -5.5 10.40 21.30 -2.4 15.80 22.80 -3.40 7.70 22.40 8.20 12.00 [,12] [1,] -10.3 [2,] -7.7 [3,] -1.4 [4,] 3.2 [5,] 9.5 $n [1] 8 8 8 8 8 8 8 8 7 7 7 7 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] -19.9103 -6.93752 8.09938 -13.3103 -6.438896 3.17145 -17.078906 [2,] -12.0897 4.73752 20.50062 -5.4897 5.738896 15.62855 -6.521094 [,8] [,9] [,10] [,11] [,12] [1,] -0.6934274 -2.725925 -2.246204 -0.3239508 -7.909304 [2,] 2.9934274 11.725925 7.846204 10.7239508 5.109304 $out [1] -23.8 $group [1] 4 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" "11" "12" Warning message: In bxp(list(stats = c(-25.5, -18.5, -16, -11.5, -5.5, -11.5, -8.65, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/6t1ig1229672445.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,] 112.8 119.10 109.40 104.20 105.00 101.80 97.50 92.0 [2,] 124.0 121.65 117.65 115.00 109.95 107.50 99.00 98.0 [3,] 128.7 125.75 122.65 121.15 116.35 110.30 101.15 98.6 [4,] 133.5 133.80 127.20 126.15 128.00 115.25 105.10 106.8 [5,] 138.3 137.80 137.40 136.40 134.00 118.40 112.70 107.7 $n [1] 12 12 12 12 12 12 12 9 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 124.3670 120.2083 118.2942 116.0644 108.1173 106.7652 98.36775 93.96533 [2,] 133.0330 131.2917 127.0058 126.2356 124.5827 113.8348 103.93225 103.23467 $out [1] 127.5 117.7 $group [1] 6 7 $names [1] "1" "2" "3" "4" "5" "6" "7" NA Warning message: In bxp(list(stats = c(112.8, 124, 128.7, 133.5, 138.3, 119.1, 121.65, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/7sz3w1229672445.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,] 109.4125 109.600 109.7875 [2,] 111.6687 112.375 111.4125 [3,] 116.8518 119.775 116.5687 [4,] 122.4563 126.850 121.8937 [5,] 126.9125 130.250 129.0125 $n [1] 12 12 12 $conf [,1] [,2] [,3] [1,] 111.9315 113.1729 111.7882 [2,] 121.7720 126.3771 121.3493 $out numeric(0) $group numeric(0) $names [1] "mean" "median" "midrange" > dev.off() null device 1 > > system("convert tmp/1kvdp1229672445.ps tmp/1kvdp1229672445.png") > system("convert tmp/2zl1g1229672445.ps tmp/2zl1g1229672445.png") > system("convert tmp/3st7v1229672445.ps tmp/3st7v1229672445.png") > system("convert tmp/42pvt1229672445.ps tmp/42pvt1229672445.png") > system("convert tmp/5izlj1229672445.ps tmp/5izlj1229672445.png") > system("convert tmp/6t1ig1229672445.ps tmp/6t1ig1229672445.png") > system("convert tmp/7sz3w1229672445.ps tmp/7sz3w1229672445.png") > > > proc.time() user system elapsed 1.204 0.954 1.753