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(93.4,98.5,100.8,102.3,104.7,101.1,101.4,99.5,98.4,96.3,100.7,101.2,100.3,97.8,97.4,98.6,99.7,99,98.1,97,98.5,103.8,114.4,124.5,134.2,131.8,125.6,119.9,114.9,115.5,112.5,111.4,115.3,110.8,103.7,111.1,113,111.2,117.6,121.7,127.3,129.8,137.1,141.4,137.4,130.7,117.2,110.8,111.4,108.2,108.8,110.2,109.5,109.5,116,111.2,112.1,114,119.1,114.1,115.1,115.4,110.8,116,119.2,126.5,127.8,131.3,140.3,137.3,143,134.5,139.9,159.3,170.4,175,175.8,180.9,180.3,169.6,172.3,184.8,177.7,184.6,211.4,215.3,215.9,244.7,259.3,289,310.9,321,315.1,333.2,314.1,284.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] 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,] 93.4 100.3 134.2 113.0 111.4 115.1 139.9 211.4 NA [2,] 98.5 97.8 131.8 111.2 108.2 115.4 159.3 215.3 NA [3,] 100.8 97.4 125.6 117.6 108.8 110.8 170.4 215.9 NA [4,] 102.3 98.6 119.9 121.7 110.2 116.0 175.0 244.7 NA [5,] 104.7 99.7 114.9 127.3 109.5 119.2 175.8 259.3 NA [6,] 101.1 99.0 115.5 129.8 109.5 126.5 180.9 289.0 NA [7,] 101.4 98.1 112.5 137.1 116.0 127.8 180.3 310.9 NA [8,] 99.5 97.0 111.4 141.4 111.2 131.3 169.6 321.0 NA [9,] 98.4 98.5 115.3 137.4 112.1 140.3 172.3 315.1 NA [10,] 96.3 103.8 110.8 130.7 114.0 137.3 184.8 333.2 NA [11,] 100.7 114.4 103.7 117.2 119.1 143.0 177.7 314.1 NA [12,] 101.2 124.5 111.1 110.8 114.1 134.5 184.6 284.7 NA > darr [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [,9] [1,] 5.1 -2.5 -2.4 -1.8 -3.2 0.3 19.4 3.9 NA [2,] 2.3 -0.4 -6.2 6.4 0.6 -4.6 11.1 0.6 NA [3,] 1.5 1.2 -5.7 4.1 1.4 5.2 4.6 28.8 NA [4,] 2.4 1.1 -5.0 5.6 -0.7 3.2 0.8 14.6 NA [5,] -3.6 -0.7 0.6 2.5 0.0 7.3 5.1 29.7 NA [6,] 0.3 -0.9 -3.0 7.3 6.5 1.3 -0.6 21.9 NA [7,] -1.9 -1.1 -1.1 4.3 -4.8 3.5 -10.7 10.1 NA [8,] -1.1 1.5 3.9 -4.0 0.9 9.0 2.7 -5.9 NA [9,] -2.1 5.3 -4.5 -6.7 1.9 -3.0 12.5 18.1 NA [10,] 4.4 10.6 -7.1 -13.5 5.1 5.7 -7.1 -19.1 NA [11,] 0.5 10.1 7.4 -6.4 -5.0 -8.5 6.9 -29.4 NA [12,] -0.9 9.7 1.9 0.6 1.0 5.4 26.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/11bhw1228418518.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/2n7ly1228418518.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/3v4gq1228418518.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/4sk041228418518.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,] 93.40 97.80 97.4 98.60 99.70 99.00 98.10 97.00 98.40 96.30 [2,] 105.85 103.35 104.8 106.25 107.10 105.30 106.95 105.35 105.30 107.30 [3,] 114.05 113.30 114.2 117.95 117.05 121.00 121.90 121.35 126.35 122.35 [4,] 137.05 145.55 148.0 148.35 151.55 155.35 158.70 155.50 156.30 161.05 [5,] 139.90 159.30 170.4 175.00 175.80 180.90 180.30 169.60 172.30 184.80 [,11] [,12] [1,] 100.70 101.20 [2,] 109.05 110.95 [3,] 118.15 119.30 [4,] 160.35 159.55 [5,] 177.70 184.60 $n [1] 8 8 8 8 8 8 8 8 8 8 8 8 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] 96.62123 89.72647 90.06786 94.43234 92.2196 93.04135 92.9917 [2,] 131.47877 136.87353 138.33214 141.46766 141.8804 148.95865 150.8083 [,8] [,9] [,10] [,11] [,12] [1,] 93.33549 97.86067 92.32448 89.49308 92.15134 [2,] 149.36451 154.83933 152.37552 146.80692 146.44866 $out [1] 211.4 215.3 215.9 244.7 259.3 289.0 310.9 321.0 315.1 333.2 314.1 284.7 $group [1] 1 2 3 4 5 6 7 8 9 10 11 12 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" "11" "12" Warning message: In bxp(list(stats = c(93.4, 105.85, 114.05, 137.05, 139.9, 97.8, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/5k5wc1228418518.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,] -3.20 -6.20 1.2 -5.00 -3.60 -3.00 -10.70 -5.90 -6.70 -19.10 -8.50 -0.90 [2,] -2.45 -2.50 1.3 0.05 -0.35 -0.75 -3.35 -2.55 -3.75 -10.30 -7.45 0.80 [3,] -0.75 0.60 2.8 1.75 1.55 0.80 -1.10 1.20 -0.10 -1.35 -2.25 1.90 [4,] 4.50 4.35 4.9 4.40 6.20 6.90 3.90 3.30 8.90 5.40 7.15 7.55 [5,] 5.10 11.10 5.2 5.60 7.30 7.30 10.10 9.00 18.10 10.60 10.10 9.70 $n [1] 8 8 8 8 8 8 8 8 8 8 8 7 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] -4.63237 -3.226508 0.7889883 -0.6799725 -2.108924 -3.4734 -5.149954 [2,] 3.13237 4.426508 4.8110117 4.1799725 5.208924 5.0734 2.949954 [,8] [,9] [,10] [,11] [,12] [1,] -2.067894 -7.166472 -10.120245 -10.40577 -2.130991 [2,] 4.467894 6.966472 7.420245 5.90577 5.930991 $out [1] 19.4 -5.7 28.8 14.6 29.7 21.9 -29.4 26.8 $group [1] 1 3 3 4 5 6 11 12 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" "11" "12" Warning message: In bxp(list(stats = c(-3.2, -2.44999999999999, -0.749999999999993, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/6ygmp1228418518.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,] 96.30 97.00 103.70 110.8 108.20 110.80 159.3 211.40 NA [2,] 98.45 97.95 111.25 115.1 109.50 115.70 170.0 230.30 NA [3,] 100.75 98.80 115.10 124.5 111.30 127.15 175.4 286.85 NA [4,] 101.30 102.05 122.75 133.9 114.05 135.90 180.6 314.60 NA [5,] 104.70 103.80 134.20 141.4 119.10 143.00 184.8 333.20 NA $n [1] 12 12 12 12 12 12 12 12 0 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 99.4501 96.92996 109.8548 115.9252 109.2247 117.9366 170.5653 248.4002 [2,] 102.0499 100.67004 120.3452 133.0748 113.3753 136.3634 180.2347 325.2998 [,9] [1,] NA [2,] NA $out [1] 93.4 114.4 124.5 139.9 $group [1] 1 2 2 7 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" NA Warning message: In bxp(list(stats = c(96.3, 98.45, 100.75, 101.3, 104.7, 97, 97.95, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/78lvx1228418518.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,] 127.3375 113.300 121.6250 [2,] 133.4812 115.625 122.1750 [3,] 144.8000 118.725 126.6750 [4,] 148.3438 121.625 128.9187 [5,] 151.3625 126.350 131.7000 $n [1] 12 12 12 $conf [,1] [,2] [,3] [1,] 138.0211 115.9884 123.5991 [2,] 151.5789 121.4616 129.7509 $out numeric(0) $group numeric(0) $names [1] "mean" "median" "midrange" Warning message: In bxp(list(stats = c(127.3375, 133.48125, 144.8, 148.34375, 151.3625, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > > system("convert tmp/11bhw1228418518.ps tmp/11bhw1228418518.png") > system("convert tmp/2n7ly1228418518.ps tmp/2n7ly1228418518.png") > system("convert tmp/3v4gq1228418518.ps tmp/3v4gq1228418518.png") > system("convert tmp/4sk041228418518.ps tmp/4sk041228418518.png") > system("convert tmp/5k5wc1228418518.ps tmp/5k5wc1228418518.png") > system("convert tmp/6ygmp1228418518.ps tmp/6ygmp1228418518.png") > system("convert tmp/78lvx1228418518.ps tmp/78lvx1228418518.png") > > > proc.time() user system elapsed 1.205 0.939 1.571