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(2.12,2.12,2.13,2.14,2.15,2.15,2.16,2.17,2.17,2.18,2.17,2.17,2.18,2.17,2.18,2.18,2.18,2.17,2.17,2.18,2.17,2.18,2.17,2.17,2.17,2.17,2.17,2.17,2.17,2.17,2.17,2.18,2.18,2.18,2.18,2.18,2.18,2.18,2.18,2.18,2.18,2.18,2.18,2.18,2.19,2.19,2.19,2.2,2.2,2.21,2.21,2.21,2.2,2.21,2.2,2.21,2.21,2.22,2.22,2.23,2.24,2.24,2.25,2.25,2.32,2.36,2.37,2.37,2.37,2.38,2.38,2.41,2.42,2.43,2.44,2.44,2.44,2.43,2.43,2.43,2.42,2.42,2.42,2.42,2.42) > 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] 85 > (np <- floor(n / par1)) [1] 7 > 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 7 7 7 7 7 7 7 7 7 7 7 > arr [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 2.12 2.18 2.17 2.18 2.20 2.24 2.42 2.42 [2,] 2.12 2.17 2.17 2.18 2.21 2.24 2.43 NA [3,] 2.13 2.18 2.17 2.18 2.21 2.25 2.44 NA [4,] 2.14 2.18 2.17 2.18 2.21 2.25 2.44 NA [5,] 2.15 2.18 2.17 2.18 2.20 2.32 2.44 NA [6,] 2.15 2.17 2.17 2.18 2.21 2.36 2.43 NA [7,] 2.16 2.17 2.17 2.18 2.20 2.37 2.43 NA [8,] 2.17 2.18 2.18 2.18 2.21 2.37 2.43 NA [9,] 2.17 2.17 2.18 2.19 2.21 2.37 2.42 NA [10,] 2.18 2.18 2.18 2.19 2.22 2.38 2.42 NA [11,] 2.17 2.17 2.18 2.19 2.22 2.38 2.42 NA [12,] 2.17 2.17 2.18 2.20 2.23 2.41 2.42 NA > darr [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 0.00 -0.01 0.00 0.00 0.01 0.00 0.01 NA [2,] 0.01 0.01 0.00 0.00 0.00 0.01 0.01 NA [3,] 0.01 0.00 0.00 0.00 0.00 0.00 0.00 NA [4,] 0.01 0.00 0.00 0.00 -0.01 0.07 0.00 NA [5,] 0.00 -0.01 0.00 0.00 0.01 0.04 -0.01 NA [6,] 0.01 0.00 0.00 0.00 -0.01 0.01 0.00 NA [7,] 0.01 0.01 0.01 0.00 0.01 0.00 0.00 NA [8,] 0.00 -0.01 0.00 0.01 0.00 0.00 -0.01 NA [9,] 0.01 0.01 0.00 0.00 0.01 0.01 0.00 NA [10,] -0.01 -0.01 0.00 0.00 0.00 0.00 0.00 NA [11,] 0.00 0.00 0.00 0.01 0.01 0.03 0.00 NA [12,] 0.01 0.00 0.00 0.00 0.01 0.01 0.00 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/10t3z1259349701.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/2q58n1259349701.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/3lruh1259349701.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/4h3wc1259349701.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,] 2.120 2.120 2.130 2.140 2.150 2.150 2.160 2.17 2.170 2.18 2.170 2.170 [2,] 2.175 2.170 2.175 2.175 2.175 2.170 2.170 2.18 2.175 2.18 2.175 2.175 [3,] 2.190 2.180 2.180 2.180 2.180 2.180 2.180 2.18 2.190 2.19 2.190 2.200 [4,] 2.330 2.225 2.230 2.230 2.260 2.285 2.285 2.29 2.290 2.30 2.300 2.320 [5,] 2.420 2.240 2.250 2.250 2.320 2.430 2.430 2.43 2.420 2.42 2.420 2.420 $n [1] 8 7 7 7 7 7 7 7 7 7 7 7 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 2.103415 2.147155 2.147155 2.147155 2.129239 2.111324 2.111324 2.114310 [2,] 2.276585 2.212845 2.212845 2.212845 2.230761 2.248676 2.248676 2.245690 [,9] [,10] [,11] [,12] [1,] 2.121324 2.118338 2.115352 2.113408 [2,] 2.258676 2.261662 2.264648 2.286592 $out [1] 2.43 2.44 2.44 2.44 $group [1] 2 3 4 5 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" "11" "12" Warning message: In bxp(list(stats = c(2.12, 2.175, 2.19, 2.33, 2.42, 2.12, 2.17, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/5sc8g1259349701.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.000 0.00 0 0.000 -0.010 0.000 0.00 -0.010 0.00 -0.010 0.00 0.00 [2,] 0.000 0.00 0 0.000 -0.005 0.000 0.00 -0.005 0.00 -0.005 0.00 0.00 [3,] 0.000 0.01 0 0.000 0.000 0.000 0.01 0.000 0.01 0.000 0.00 0.00 [4,] 0.005 0.01 0 0.005 0.005 0.005 0.01 0.000 0.01 0.000 0.01 0.01 [5,] 0.010 0.01 0 0.010 0.010 0.010 0.01 0.000 0.01 0.000 0.01 0.01 $n [1] 7 7 7 7 7 7 7 7 7 7 7 7 $conf [,1] [,2] [,3] [,4] [,5] [,6] [1,] -0.002985919 0.004028161 0 -0.002985919 -0.005971839 -0.002985919 [2,] 0.002985919 0.015971839 0 0.002985919 0.005971839 0.002985919 [,7] [,8] [,9] [,10] [,11] [1,] 0.004028161 -0.002985919 0.004028161 -0.002985919 -0.005971839 [2,] 0.015971839 0.002985919 0.015971839 0.002985919 0.005971839 [,12] [1,] -0.005971839 [2,] 0.005971839 $out [1] -0.01 0.01 -0.01 0.07 0.04 -0.01 0.01 0.03 $group [1] 1 3 4 4 5 6 8 11 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" "11" "12" Warning message: In bxp(list(stats = c(0, 0, 0, 0.00499999999999989, 0.0100000000000002, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/69v771259349701.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] [1,] 2.120 2.170 2.17 2.18 2.200 2.240 2.420 2.42 [2,] 2.135 2.170 2.17 2.18 2.205 2.250 2.420 2.42 [3,] 2.155 2.175 2.17 2.18 2.210 2.365 2.430 2.42 [4,] 2.170 2.180 2.18 2.19 2.215 2.375 2.435 2.42 [5,] 2.180 2.180 2.18 2.20 2.220 2.410 2.440 2.42 $n [1] 12 12 12 12 12 12 12 1 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 2.139036 2.170439 2.165439 2.175439 2.205439 2.307987 2.423158 2.42 [2,] 2.170964 2.179561 2.174561 2.184561 2.214561 2.422013 2.436842 2.42 $out [1] 2.23 $group [1] 5 $names [1] "1" "2" "3" "4" "5" "6" "7" NA Warning message: In bxp(list(stats = c(2.12, 2.135, 2.155, 2.17, 2.18, 2.17, 2.17, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/7pyh01259349701.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,] 2.217143 2.18 2.197500 [2,] 2.229286 2.18 2.210000 [3,] 2.240625 2.18 2.229375 [4,] 2.246429 2.19 2.236250 [5,] 2.254286 2.20 2.247500 $n [1] 12 12 12 $conf [,1] [,2] [,3] [1,] 2.232806 2.175439 2.217402 [2,] 2.248444 2.184561 2.241348 $out numeric(0) $group numeric(0) $names [1] "mean" "median" "midrange" Warning message: In bxp(list(stats = c(2.21714285714286, 2.22928571428571, 2.240625, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > > system("convert tmp/10t3z1259349701.ps tmp/10t3z1259349701.png") > system("convert tmp/2q58n1259349701.ps tmp/2q58n1259349701.png") > system("convert tmp/3lruh1259349701.ps tmp/3lruh1259349701.png") > system("convert tmp/4h3wc1259349701.ps tmp/4h3wc1259349701.png") > system("convert tmp/5sc8g1259349701.ps tmp/5sc8g1259349701.png") > system("convert tmp/69v771259349701.ps tmp/69v771259349701.png") > system("convert tmp/7pyh01259349701.ps tmp/7pyh01259349701.png") > > > proc.time() user system elapsed 1.193 0.932 1.768