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(0.96,1,1.05,1.03,1.07,1.12,1.1,1.06,1.11,1.08,1.07,1.02,1,1.04,1.02,1.07,1.12,1.08,1.02,1.01,1.04,0.98,0.95,0.94,0.94,0.96,0.97,1.03,1.01,0.99,1,1,1.02,1.01,0.99,0.98,1.01,1.03,1.03,1,0.96,0.97,0.98,1.02,1.04,1.01,1.01,1,1.01,1.02,1.03,1.06,1.12,1.12,1.13,1.13,1.13,1.17,1.14,1.08,1.07,1.12,1.14,1.21,1.2,1.23,1.29,1.31,1.37,1.35,1.26,1.26,1.28,1.28,1.27,1.35,1.37,1.37,1.4,1.4,1.28,1.23,1.23,1.25,1.21,1.22,1.29,1.32,1.36,1.36,1.37,1.32,1.33,1.36,1.42,1.39,1.42,1.4,1.42,1.44,1.49,1.54,1.55,1.47,1.47,1.35,1.2,1.12) > 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] 108 > (np <- floor(n / par1)) [1] 9 > 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] 9 9 9 9 9 9 9 9 9 9 9 9 > arr [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [,9] [,10] [1,] 0.96 1.00 0.94 1.01 1.01 1.07 1.28 1.21 1.42 NA [2,] 1.00 1.04 0.96 1.03 1.02 1.12 1.28 1.22 1.40 NA [3,] 1.05 1.02 0.97 1.03 1.03 1.14 1.27 1.29 1.42 NA [4,] 1.03 1.07 1.03 1.00 1.06 1.21 1.35 1.32 1.44 NA [5,] 1.07 1.12 1.01 0.96 1.12 1.20 1.37 1.36 1.49 NA [6,] 1.12 1.08 0.99 0.97 1.12 1.23 1.37 1.36 1.54 NA [7,] 1.10 1.02 1.00 0.98 1.13 1.29 1.40 1.37 1.55 NA [8,] 1.06 1.01 1.00 1.02 1.13 1.31 1.40 1.32 1.47 NA [9,] 1.11 1.04 1.02 1.04 1.13 1.37 1.28 1.33 1.47 NA [10,] 1.08 0.98 1.01 1.01 1.17 1.35 1.23 1.36 1.35 NA [11,] 1.07 0.95 0.99 1.01 1.14 1.26 1.23 1.42 1.20 NA [12,] 1.02 0.94 0.98 1.00 1.08 1.26 1.25 1.39 1.12 NA > darr [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [,9] [,10] [1,] 0.04 0.04 0.02 0.02 0.01 0.05 0.00 0.01 -0.02 NA [2,] 0.05 -0.02 0.01 0.00 0.01 0.02 -0.01 0.07 0.02 NA [3,] -0.02 0.05 0.06 -0.03 0.03 0.07 0.08 0.03 0.02 NA [4,] 0.04 0.05 -0.02 -0.04 0.06 -0.01 0.02 0.04 0.05 NA [5,] 0.05 -0.04 -0.02 0.01 0.00 0.03 0.00 0.00 0.05 NA [6,] -0.02 -0.06 0.01 0.01 0.01 0.06 0.03 0.01 0.01 NA [7,] -0.04 -0.01 0.00 0.04 0.00 0.02 0.00 -0.05 -0.08 NA [8,] 0.05 0.03 0.02 0.02 0.00 0.06 -0.12 0.01 0.00 NA [9,] -0.03 -0.06 -0.01 -0.03 0.04 -0.02 -0.05 0.03 -0.12 NA [10,] -0.01 -0.03 -0.02 0.00 -0.03 -0.09 0.00 0.06 -0.15 NA [11,] -0.05 -0.01 -0.01 -0.01 -0.06 0.00 0.02 -0.03 -0.08 NA [12,] -0.02 0.00 0.03 0.01 -0.01 0.02 -0.04 0.03 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/1njs21259611989.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/265tt1259611989.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/3uqlh1259611989.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/4iwqd1259611989.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,] 0.94 0.96 0.97 1.00 0.96 0.97 0.98 1.00 1.02 0.98 0.95 0.94 [2,] 1.00 1.02 1.03 1.03 1.07 1.08 1.02 1.02 1.04 1.01 1.01 1.00 [3,] 1.01 1.04 1.05 1.07 1.12 1.12 1.13 1.13 1.13 1.17 1.14 1.08 [4,] 1.21 1.22 1.27 1.32 1.36 1.36 1.37 1.32 1.33 1.35 1.23 1.25 [5,] 1.42 1.40 1.42 1.44 1.49 1.54 1.55 1.47 1.47 1.36 1.42 1.39 $n [1] 9 9 9 9 9 9 9 9 9 9 9 9 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 0.8994 0.9346667 0.9236 0.9172667 0.9672667 0.9725333 0.9456667 0.972 [2,] 1.1206 1.1453333 1.1764 1.2227333 1.2727333 1.2674667 1.3143333 1.288 [,9] [,10] [,11] [,12] [1,] 0.9772667 0.9909333 1.024133 0.9483333 [2,] 1.2827333 1.3490667 1.255867 1.2116667 $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(0.94, 1, 1.01, 1.21, 1.42, 0.96, 1.02, 1.04, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/5gy0o1259611989.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.02 -0.02 -0.03 -0.04 -0.04 0.01 -0.08 0.00 -0.06 -0.03 -0.08 -0.040 [2,] 0.01 0.00 0.02 -0.01 0.00 0.01 -0.04 0.00 -0.05 -0.03 -0.05 -0.015 [3,] 0.02 0.01 0.03 0.04 0.00 0.01 0.00 0.02 -0.03 -0.02 -0.01 0.005 [4,] 0.04 0.02 0.06 0.05 0.03 0.01 0.00 0.03 -0.01 0.00 -0.01 0.025 [5,] 0.05 0.05 0.08 0.06 0.05 0.01 0.04 0.06 0.04 0.00 0.02 0.030 $n [1] 9 9 9 9 9 9 9 9 9 9 9 8 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 0.0042 -0.0005333333 0.008933333 0.0084 -0.0158 0.01 -0.02106667 0.0042 [2,] 0.0358 0.0205333333 0.051066667 0.0716 0.0158 0.01 0.02106667 0.0358 [,9] [,10] [,11] [,12] [1,] -0.051066667 -0.0358 -0.03106667 -0.01734457 [2,] -0.008933333 -0.0042 0.01106667 0.02734457 $out [1] 0.07 -0.02 -0.06 0.06 0.03 -0.12 -0.12 -0.09 0.06 -0.15 $group [1] 2 6 6 6 6 8 9 10 10 10 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" "11" "12" Warning message: In bxp(list(stats = c(-0.02, 0.01, 0.02, 0.04, 0.05, -0.02, 0, 0.01, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/6yore1259611989.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] [,10] [1,] 0.960 0.940 0.940 0.960 1.010 1.070 1.23 1.220 1.350 NA [2,] 1.025 0.990 0.975 0.990 1.045 1.170 1.26 1.305 1.375 NA [3,] 1.065 1.020 0.995 1.010 1.120 1.245 1.28 1.345 1.430 NA [4,] 1.090 1.055 1.010 1.025 1.130 1.300 1.37 1.365 1.480 NA [5,] 1.120 1.120 1.030 1.040 1.170 1.370 1.40 1.420 1.550 NA $n [1] 12 12 12 12 12 12 12 12 12 0 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 1.035353 0.990353 0.9790363 0.9940363 1.081231 1.185706 1.229828 1.317634 [2,] 1.094647 1.049647 1.0109637 1.0259637 1.158769 1.304294 1.330172 1.372366 [,9] [,10] [1,] 1.382109 NA [2,] 1.477891 NA $out [1] 1.21 1.20 1.12 $group [1] 8 9 9 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" NA Warning message: In bxp(list(stats = c(0.96, 1.025, 1.065, 1.09, 1.12, 0.94, 0.99, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/74q3t1259611989.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,] 1.100000 1.01 1.1050 [2,] 1.127222 1.06 1.1225 [3,] 1.169444 1.12 1.1725 [4,] 1.194444 1.13 1.1900 [5,] 1.204444 1.17 1.2200 $n [1] 12 12 12 $conf [,1] [,2] [,3] [1,] 1.138784 1.088073 1.141713 [2,] 1.200105 1.151927 1.203287 $out numeric(0) $group numeric(0) $names [1] "mean" "median" "midrange" Warning message: In bxp(list(stats = c(1.1, 1.12722222222222, 1.16944444444444, 1.19444444444444, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > > system("convert tmp/1njs21259611989.ps tmp/1njs21259611989.png") > system("convert tmp/265tt1259611989.ps tmp/265tt1259611989.png") > system("convert tmp/3uqlh1259611989.ps tmp/3uqlh1259611989.png") > system("convert tmp/4iwqd1259611989.ps tmp/4iwqd1259611989.png") > system("convert tmp/5gy0o1259611989.ps tmp/5gy0o1259611989.png") > system("convert tmp/6yore1259611989.ps tmp/6yore1259611989.png") > system("convert tmp/74q3t1259611989.ps tmp/74q3t1259611989.png") > > > proc.time() user system elapsed 1.213 0.954 1.491