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(111.4,114.1,121.8,127.6,129.9,128,123.5,124,127.4,127.6,128.4,131.4,135.1,134,144.5,147.3,150.9,148.7,141.4,138.9,139.8,145.6,147.9,148.5,151.1,157.5,167.5,172.3,173.5,187.5,205.5,195.1,204.5,204.5,201.7,207,206.6,210.6,211.1,215,223.9,238.2,238.9,229.6,232.2,222.1,221.6,227.3,221,213.6,243.4,253.8,265.3,268.2,268.5,266.9,268.4,250.8,231.2,192,171.4) > 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,] 111.4 135.1 151.1 206.6 221.0 171.4 [2,] 114.1 134.0 157.5 210.6 213.6 NA [3,] 121.8 144.5 167.5 211.1 243.4 NA [4,] 127.6 147.3 172.3 215.0 253.8 NA [5,] 129.9 150.9 173.5 223.9 265.3 NA [6,] 128.0 148.7 187.5 238.2 268.2 NA [7,] 123.5 141.4 205.5 238.9 268.5 NA [8,] 124.0 138.9 195.1 229.6 266.9 NA [9,] 127.4 139.8 204.5 232.2 268.4 NA [10,] 127.6 145.6 204.5 222.1 250.8 NA [11,] 128.4 147.9 201.7 221.6 231.2 NA [12,] 131.4 148.5 207.0 227.3 192.0 NA > darr [,1] [,2] [,3] [,4] [,5] [,6] [1,] 2.7 -1.1 6.4 4.0 -7.4 NA [2,] 7.7 10.5 10.0 0.5 29.8 NA [3,] 5.8 2.8 4.8 3.9 10.4 NA [4,] 2.3 3.6 1.2 8.9 11.5 NA [5,] -1.9 -2.2 14.0 14.3 2.9 NA [6,] -4.5 -7.3 18.0 0.7 0.3 NA [7,] 0.5 -2.5 -10.4 -9.3 -1.6 NA [8,] 3.4 0.9 9.4 2.6 1.5 NA [9,] 0.2 5.8 0.0 -10.1 -17.6 NA [10,] 0.8 2.3 -2.8 -0.5 -19.6 NA [11,] 3.0 0.6 5.3 5.7 -39.2 NA [12,] 3.7 2.6 -0.4 -6.3 -20.6 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/10q511229865471.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/2zfmw1229865471.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/3vss11229865471.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/4yc751229865471.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,] 111.40 114.1 121.8 127.6 129.9 128.0 123.5 124.0 127.4 127.6 128.4 131.4 [2,] 135.10 134.0 144.5 147.3 150.9 148.7 141.4 138.9 139.8 145.6 147.9 148.5 [3,] 161.25 157.5 167.5 172.3 173.5 187.5 205.5 195.1 204.5 204.5 201.7 192.0 [4,] 206.60 210.6 211.1 215.0 223.9 238.2 238.9 229.6 232.2 222.1 221.6 207.0 [5,] 221.00 213.6 243.4 253.8 265.3 268.2 268.5 266.9 268.4 250.8 231.2 227.3 $n [1] 6 5 5 5 5 5 5 5 5 5 5 5 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 115.1302 103.3746 120.4406 124.4634 121.9184 124.2595 136.6067 131.0116 [2,] 207.3698 211.6254 214.5594 220.1366 225.0816 250.7405 274.3933 259.1884 [,9] [,10] [,11] [,12] [1,] 139.2104 150.4453 149.6238 150.6640 [2,] 269.7896 258.5547 253.7762 233.3360 $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(111.4, 135.1, 161.25, 206.6, 221, 114.1, 134, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/5zprk1229865471.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,] -7.4 7.7 2.8 1.2 -2.2 -7.3 -10.4 0.9 -17.6 -2.8 0.6 -6.3 [2,] -1.1 7.7 3.9 2.3 -1.9 -4.5 -9.3 1.5 -10.1 -2.8 0.6 -6.3 [3,] 2.7 10.0 4.8 3.6 2.9 0.3 -2.5 2.6 0.0 -0.5 3.0 -0.4 [4,] 4.0 10.5 5.8 8.9 14.0 0.7 -1.6 3.4 0.2 0.8 5.3 2.6 [5,] 6.4 10.5 5.8 11.5 14.3 0.7 0.5 3.4 5.8 2.3 5.7 3.7 $n [1] 5 5 5 5 5 5 5 5 5 5 5 5 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] -0.9036472 8.021527 3.457465 -1.063543 -8.3349 -3.374307 -7.940801 [2,] 6.3036472 11.978473 6.142535 8.263543 14.1349 3.974307 2.940801 [,8] [,9] [,10] [,11] [,12] [1,] 1.257465 -7.277954 -3.043751 -0.3210082 -6.688718 [2,] 3.942535 7.277954 2.043751 6.3210082 5.888718 $out [1] 0.5 29.8 10.4 18.0 9.4 -19.6 -39.2 -20.6 $group [1] 2 2 3 6 8 10 11 12 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" "11" "12" Warning message: In bxp(list(stats = c(-7.4, -1.09999999999999, 2.69999999999999, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/6a6qd1229865471.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,] 121.80 134.00 151.1 206.60 192.00 171.4 [2,] 122.65 139.35 169.9 213.05 226.10 171.4 [3,] 127.50 145.05 191.3 223.00 252.30 171.4 [4,] 128.20 148.20 204.5 230.90 267.55 171.4 [5,] 131.40 150.90 207.0 238.90 268.50 171.4 $n [1] 12 12 12 12 12 1 $conf [,1] [,2] [,3] [,4] [,5] [,6] [1,] 124.9686 141.0135 175.5187 214.8585 233.3944 171.4 [2,] 130.0314 149.0865 207.0813 231.1415 271.2056 171.4 $out [1] 111.4 114.1 $group [1] 1 1 $names [1] "1" "2" "3" "4" "5" NA Warning message: In bxp(list(stats = c(121.8, 122.65, 127.5, 128.2, 131.4, 134, 139.35, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/7xscr1229865471.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,] 165.96 157.50 168.450 [2,] 179.45 169.90 177.775 [3,] 187.43 189.75 184.050 [4,] 192.51 203.10 186.700 [5,] 195.56 205.50 193.450 $n [1] 12 12 12 $conf [,1] [,2] [,3] [1,] 181.4732 174.6073 179.9792 [2,] 193.3868 204.8927 188.1208 $out numeric(0) $group numeric(0) $names [1] "mean" "median" "midrange" Warning message: In bxp(list(stats = c(165.96, 179.45, 187.43, 192.51, 195.56, 157.5, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > > system("convert tmp/10q511229865471.ps tmp/10q511229865471.png") > system("convert tmp/2zfmw1229865471.ps tmp/2zfmw1229865471.png") > system("convert tmp/3vss11229865471.ps tmp/3vss11229865471.png") > system("convert tmp/4yc751229865471.ps tmp/4yc751229865471.png") > system("convert tmp/5zprk1229865471.ps tmp/5zprk1229865471.png") > system("convert tmp/6a6qd1229865471.ps tmp/6a6qd1229865471.png") > system("convert tmp/7xscr1229865471.ps tmp/7xscr1229865471.png") > > > proc.time() user system elapsed 1.212 0.952 1.891