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(100.6,104.3,120.4,107.5,102.9,125.6,107.5,108.8,128.4,121.1,119.5,128.7,108.7,105.5,119.8,111.3,110.6,120.1,97.5,107.7,127.3,117.2,119.8,116.2,111,112.4,130.6,109.1,118.8,123.9,101.6,112.8,128,129.6,125.8,119.5,115.7,113.6,129.7,112,116.8,127,112.1,114.2,121.1,131.6,125,120.4,117.7,117.5,120.6,127.5,112.3,124.5,115.2,104.7,130.9,129.2,113.5,125.6,107.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] 61 > (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] 6 5 5 5 5 5 5 5 5 5 5 5 > arr [,1] [,2] [,3] [,4] [,5] [,6] [1,] 100.6 108.7 111.0 115.7 117.7 107.6 [2,] 104.3 105.5 112.4 113.6 117.5 NA [3,] 120.4 119.8 130.6 129.7 120.6 NA [4,] 107.5 111.3 109.1 112.0 127.5 NA [5,] 102.9 110.6 118.8 116.8 112.3 NA [6,] 125.6 120.1 123.9 127.0 124.5 NA [7,] 107.5 97.5 101.6 112.1 115.2 NA [8,] 108.8 107.7 112.8 114.2 104.7 NA [9,] 128.4 127.3 128.0 121.1 130.9 NA [10,] 121.1 117.2 129.6 131.6 129.2 NA [11,] 119.5 119.8 125.8 125.0 113.5 NA [12,] 128.7 116.2 119.5 120.4 125.6 NA > darr [,1] [,2] [,3] [,4] [,5] [,6] [1,] 3.7 -3.2 1.4 -2.1 -0.2 NA [2,] 16.1 14.3 18.2 16.1 3.1 NA [3,] -12.9 -8.5 -21.5 -17.7 6.9 NA [4,] -4.6 -0.7 9.7 4.8 -15.2 NA [5,] 22.7 9.5 5.1 10.2 12.2 NA [6,] -18.1 -22.6 -22.3 -14.9 -9.3 NA [7,] 1.3 10.2 11.2 2.1 -10.5 NA [8,] 19.6 19.6 15.2 6.9 26.2 NA [9,] -7.3 -10.1 1.6 10.5 -1.7 NA [10,] -1.6 2.6 -3.8 -6.6 -15.7 NA [11,] 9.2 -3.6 -6.3 -4.6 12.1 NA [12,] -20.0 -5.2 -3.8 -2.7 -18.0 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/1y7501258283889.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/2khxd1258283889.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/3k5g71258283889.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/4fso01258283889.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,] 100.60 104.3 119.8 107.5 102.9 123.9 97.5 104.7 127.3 117.2 113.5 116.2 [2,] 107.60 105.5 120.4 109.1 110.6 123.9 101.6 107.7 127.3 121.1 119.5 119.5 [3,] 109.85 112.4 120.6 111.3 112.3 124.5 107.5 108.8 128.0 129.2 119.8 120.4 [4,] 115.70 113.6 129.7 112.0 116.8 125.6 112.1 112.8 128.4 129.6 125.0 125.6 [5,] 117.70 117.5 130.6 112.0 118.8 127.0 115.2 114.2 128.4 131.6 125.8 128.7 $n [1] 6 5 5 5 5 5 5 5 5 5 5 5 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 104.6252 106.6766 114.0286 109.2509 107.9191 123.2988 100.0807 105.1964 [2,] 115.0748 118.1234 127.1714 113.3491 116.6809 125.7012 114.9193 112.4036 [,9] [,10] [,11] [,12] [1,] 127.2227 123.1939 115.9137 116.0898 [2,] 128.7773 135.2061 123.6863 124.7102 $out [1] 127.5 120.1 121.1 130.9 $group [1] 4 6 9 9 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" "11" "12" Warning message: In bxp(list(stats = c(100.6, 107.6, 109.85, 115.7, 117.7, 104.3, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/5r3iq1258283889.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.2 14.3 -21.5 -15.2 9.5 -22.6 -10.5 15.2 -10.1 -6.6 -6.3 -20.0 [2,] -2.1 14.3 -17.7 -4.6 9.5 -22.3 1.3 15.2 -7.3 -6.6 -4.6 -18.0 [3,] -0.2 16.1 -12.9 -0.7 10.2 -18.1 2.1 19.6 -1.7 -3.8 -3.6 -5.2 [4,] 1.4 16.1 -8.5 4.8 12.2 -14.9 10.2 19.6 1.6 -1.6 9.2 -3.8 [5,] 3.7 18.2 -8.5 9.7 12.2 -9.3 11.2 26.2 10.5 2.6 12.1 -2.7 $n [1] 5 5 5 5 5 5 5 5 5 5 5 5 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] -2.673091 14.82812 -19.400697 -7.342016 8.292187 -23.32882 -4.188718 [2,] 2.273091 17.37188 -6.399303 5.942016 12.107813 -12.87118 8.388718 [,8] [,9] [,10] [,11] [,12] [1,] 16.49097 -7.988718 -7.3329874 -13.351045 -15.233684 [2,] 22.70903 4.588718 -0.2670126 6.151045 4.833684 $out [1] 3.1 6.9 22.7 5.1 6.9 -15.7 $group [1] 2 3 5 5 8 10 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" "11" "12" Warning message: In bxp(list(stats = c(-3.2, -2.10000000000001, -0.200000000000003, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/6x8ij1258283889.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,] 100.60 97.50 101.60 112.0 104.70 107.6 [2,] 105.90 108.20 111.70 113.9 114.35 107.6 [3,] 114.15 113.75 119.15 118.6 119.15 107.6 [4,] 123.35 119.80 126.90 126.0 126.55 107.6 [5,] 128.70 127.30 130.60 131.6 130.90 107.6 $n [1] 12 12 12 12 12 1 $conf [,1] [,2] [,3] [,4] [,5] [,6] [1,] 106.1909 108.4592 112.2172 113.0811 113.5855 107.6 [2,] 122.1091 119.0408 126.0828 124.1189 124.7145 107.6 $out numeric(0) $group numeric(0) $names [1] "1" "2" "3" "4" "5" NA Warning message: In bxp(list(stats = c(100.6, 105.9, 114.15, 123.35, 128.7, 97.5, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/7vios1258283889.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,] 106.7800 107.500 106.850 [2,] 110.4383 110.575 110.400 [3,] 117.1000 116.100 117.975 [4,] 124.2200 122.550 124.900 [5,] 127.1400 129.200 127.850 $n [1] 12 12 12 $conf [,1] [,2] [,3] [1,] 110.8141 110.6381 111.3615 [2,] 123.3859 121.5619 124.5885 $out numeric(0) $group numeric(0) $names [1] "mean" "median" "midrange" > dev.off() null device 1 > > system("convert tmp/1y7501258283889.ps tmp/1y7501258283889.png") > system("convert tmp/2khxd1258283889.ps tmp/2khxd1258283889.png") > system("convert tmp/3k5g71258283889.ps tmp/3k5g71258283889.png") > system("convert tmp/4fso01258283889.ps tmp/4fso01258283889.png") > system("convert tmp/5r3iq1258283889.ps tmp/5r3iq1258283889.png") > system("convert tmp/6x8ij1258283889.ps tmp/6x8ij1258283889.png") > system("convert tmp/7vios1258283889.ps tmp/7vios1258283889.png") > > > proc.time() user system elapsed 1.180 0.934 1.516