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(89.3,90.3,91.1,90.1,86.7,85.1,83.4,82,80.4,81.9,93.8,94.8,92.3,87.5,83.2,82,80.3,81.8,85.1,84.2,84.4,84.5,93.3,93.2,100.3,111.4,114.9,109.5,109.9,105.8,110.8,108.8,116.1,109.8,113.8,113.8,117.4,119.5,122.6,120.7,119,126.1,133.9,138.1,140.4,148.2,148.2,155.9,171.1,171.9,188.8,214.9,228.5,220,225.4,220.7,219.7,232.1,223.5,218.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] 60 > (np <- floor(n / par1)) [1] 5 > 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] 5 5 5 5 5 5 5 5 5 5 5 5 > arr [,1] [,2] [,3] [,4] [,5] [,6] [1,] 89.3 92.3 100.3 117.4 171.1 NA [2,] 90.3 87.5 111.4 119.5 171.9 NA [3,] 91.1 83.2 114.9 122.6 188.8 NA [4,] 90.1 82.0 109.5 120.7 214.9 NA [5,] 86.7 80.3 109.9 119.0 228.5 NA [6,] 85.1 81.8 105.8 126.1 220.0 NA [7,] 83.4 85.1 110.8 133.9 225.4 NA [8,] 82.0 84.2 108.8 138.1 220.7 NA [9,] 80.4 84.4 116.1 140.4 219.7 NA [10,] 81.9 84.5 109.8 148.2 232.1 NA [11,] 93.8 93.3 113.8 148.2 223.5 NA [12,] 94.8 93.2 113.8 155.9 218.9 NA > darr [,1] [,2] [,3] [,4] [,5] [,6] [1,] 1.0 -4.8 11.1 2.1 0.8 NA [2,] 0.8 -4.3 3.5 3.1 16.9 NA [3,] -1.0 -1.2 -5.4 -1.9 26.1 NA [4,] -3.4 -1.7 0.4 -1.7 13.6 NA [5,] -1.6 1.5 -4.1 7.1 -8.5 NA [6,] -1.7 3.3 5.0 7.8 5.4 NA [7,] -1.4 -0.9 -2.0 4.2 -4.7 NA [8,] -1.6 0.2 7.3 2.3 -1.0 NA [9,] 1.5 0.1 -6.3 7.8 12.4 NA [10,] 11.9 8.8 4.0 0.0 -8.6 NA [11,] 1.0 -0.1 0.0 7.7 -4.6 NA [12,] -2.5 7.1 3.6 15.2 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/1x5fg1257427171.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/2qlj01257427171.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/3cbig1257427171.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/4iumh1257427171.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,] 89.3 87.5 83.2 82.0 80.3 81.8 83.4 82.0 80.4 81.9 93.3 93.2 [2,] 92.3 90.3 91.1 90.1 86.7 85.1 85.1 84.2 84.4 84.5 93.8 94.8 [3,] 100.3 111.4 114.9 109.5 109.9 105.8 110.8 108.8 116.1 109.8 113.8 113.8 [4,] 117.4 119.5 122.6 120.7 119.0 126.1 133.9 138.1 140.4 148.2 148.2 155.9 [5,] 117.4 119.5 122.6 120.7 119.0 126.1 133.9 138.1 219.7 232.1 223.5 218.9 $n [1] 5 5 5 5 5 5 5 5 5 5 5 5 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] 82.5644 90.76735 92.64218 87.87812 87.0769 76.8295 76.31804 [2,] 118.0356 132.03265 137.15782 131.12188 132.7231 134.7705 145.28196 [,8] [,9] [,10] [,11] [,12] [1,] 70.7144 76.53054 64.78974 75.3611 70.6269 [2,] 146.8856 155.66946 154.81026 152.2389 156.9731 $out [1] 171.1 171.9 188.8 214.9 228.5 220.0 225.4 220.7 $group [1] 1 2 3 4 5 6 7 8 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" "11" "12" Warning message: In bxp(list(stats = c(89.3, 92.3, 100.3, 117.4, 117.4, 87.5, 90.3, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/57nwp1257427171.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,] 0.8 0.8 -1.9 -3.4 -8.5 3.3 -2.0 -1.6 -6.3 -8.6 -0.1 -2.50 [2,] 0.8 0.8 -1.9 -1.7 -4.1 3.3 -2.0 -1.0 0.1 0.0 -0.1 0.55 [3,] 1.0 3.1 -1.2 -1.7 -1.6 5.0 -1.4 0.2 1.5 4.0 0.0 5.35 [4,] 2.1 3.5 -1.0 0.4 1.5 5.4 -0.9 2.3 7.8 8.8 1.0 11.15 [5,] 2.1 3.5 -1.0 0.4 7.1 7.8 -0.9 2.3 12.4 11.9 1.0 15.20 $n [1] 5 5 5 5 5 5 5 5 5 5 5 4 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] 0.08142327 1.192187 -1.8359377 -3.1838547 -5.556946 3.516145 -2.1772572 [2,] 1.91857673 5.007813 -0.5640623 -0.2161453 2.356946 6.483855 -0.6227428 [,8] [,9] [,10] [,11] [,12] [1,] -2.131772 -3.940801 -2.218058 -0.7772572 -3.024 [2,] 2.531772 6.940801 10.218058 0.7772572 13.724 $out [1] -4.8 11.1 -4.3 16.9 -5.4 26.1 13.6 -1.7 4.2 -4.7 7.3 7.7 -4.6 $group [1] 1 1 2 2 3 3 4 6 7 7 8 11 11 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" "11" "12" Warning message: In bxp(list(stats = c(0.800000000000011, 0.800000000000011, 1, 2.09999999999999, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/6o47v1257427171.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] [1,] 80.4 80.30 105.80 117.4 171.10 NA [2,] 82.7 82.60 109.15 120.1 201.85 NA [3,] 88.0 84.45 110.35 130.0 219.85 NA [4,] 90.7 89.90 113.80 144.3 224.45 NA [5,] 94.8 93.30 116.10 155.9 232.10 NA $n [1] 12 12 12 12 12 0 $conf [,1] [,2] [,3] [,4] [,5] [,6] [1,] 84.35115 81.12042 108.2291 118.9622 209.542 NA [2,] 91.64885 87.77958 112.4709 141.0378 230.158 NA $out [1] 100.3 $group [1] 3 $names [1] "1" "2" "3" "4" "5" NA Warning message: In bxp(list(stats = c(80.4, 82.7, 88, 90.7, 94.8, 80.3, 82.6, 84.45, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/7whar1257427171.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,] 114.08 105.80 102.850 [2,] 121.78 109.15 105.150 [3,] 125.82 110.35 108.175 [4,] 129.75 113.80 114.375 [5,] 135.32 116.10 125.350 $n [1] 12 12 12 $conf [,1] [,2] [,3] [1,] 122.1848 108.2291 103.9674 [2,] 129.4552 112.4709 112.3826 $out [1] 100.3 $group [1] 2 $names [1] "mean" "median" "midrange" Warning message: In bxp(list(stats = c(114.08, 121.78, 125.82, 129.75, 135.32, 105.8, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > > system("convert tmp/1x5fg1257427171.ps tmp/1x5fg1257427171.png") > system("convert tmp/2qlj01257427171.ps tmp/2qlj01257427171.png") > system("convert tmp/3cbig1257427171.ps tmp/3cbig1257427171.png") > system("convert tmp/4iumh1257427171.ps tmp/4iumh1257427171.png") > system("convert tmp/57nwp1257427171.ps tmp/57nwp1257427171.png") > system("convert tmp/6o47v1257427171.ps tmp/6o47v1257427171.png") > system("convert tmp/7whar1257427171.ps tmp/7whar1257427171.png") > > > proc.time() user system elapsed 1.234 0.971 3.643