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(1.27,1.23,1.27,1.22,1.29,1.36,1.44,1.62,1.57,1.22,1.14,1.14,1.17,1.16,1.14,1.15,1.16,1.21,1.22,1.22,1.17,0.95,1,1.01,1.01,1,1,1,1.06,1.22,1.24,1.34,1.3,1.05,1,1,1.01,1.02,1.06,1.09,1.09,1.15,1.25,1.37,1.51,1.35,1.32,1.3,1.39,1.4,1.39,1.42,1.44,1.44,1.45,1.39,1.48,1.32,1.29,1.31,1.27,1.38,1.38,1.45,1.5,1.63,1.73,1.84,1.75,1.34,1.36,1.33,1.37,1.39,1.4,1.4,1.43,1.52,1.54,1.85,1.83,1.29,1.2,1.2,1.21,1.21,1.19,1.18,1.17,1.22,1.25,1.3,1.33,1.18,1.18,1.19) > 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] 96 > (np <- floor(n / par1)) [1] 8 > 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 8 8 8 8 8 8 8 8 8 8 8 > arr [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [,9] [1,] 1.27 1.17 1.01 1.01 1.39 1.27 1.37 1.21 NA [2,] 1.23 1.16 1.00 1.02 1.40 1.38 1.39 1.21 NA [3,] 1.27 1.14 1.00 1.06 1.39 1.38 1.40 1.19 NA [4,] 1.22 1.15 1.00 1.09 1.42 1.45 1.40 1.18 NA [5,] 1.29 1.16 1.06 1.09 1.44 1.50 1.43 1.17 NA [6,] 1.36 1.21 1.22 1.15 1.44 1.63 1.52 1.22 NA [7,] 1.44 1.22 1.24 1.25 1.45 1.73 1.54 1.25 NA [8,] 1.62 1.22 1.34 1.37 1.39 1.84 1.85 1.30 NA [9,] 1.57 1.17 1.30 1.51 1.48 1.75 1.83 1.33 NA [10,] 1.22 0.95 1.05 1.35 1.32 1.34 1.29 1.18 NA [11,] 1.14 1.00 1.00 1.32 1.29 1.36 1.20 1.18 NA [12,] 1.14 1.01 1.00 1.30 1.31 1.33 1.20 1.19 NA > darr [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [,9] [1,] -0.04 -0.01 -0.01 0.01 0.01 0.11 0.02 0.00 NA [2,] 0.04 -0.02 0.00 0.04 -0.01 0.00 0.01 -0.02 NA [3,] -0.05 0.01 0.00 0.03 0.03 0.07 0.00 -0.01 NA [4,] 0.07 0.01 0.06 0.00 0.02 0.05 0.03 -0.01 NA [5,] 0.07 0.05 0.16 0.06 0.00 0.13 0.09 0.05 NA [6,] 0.08 0.01 0.02 0.10 0.01 0.10 0.02 0.03 NA [7,] 0.18 0.00 0.10 0.12 -0.06 0.11 0.31 0.05 NA [8,] -0.05 -0.05 -0.04 0.14 0.09 -0.09 -0.02 0.03 NA [9,] -0.35 -0.22 -0.25 -0.16 -0.16 -0.41 -0.54 -0.15 NA [10,] -0.08 0.05 -0.05 -0.03 -0.03 0.02 -0.09 0.00 NA [11,] 0.00 0.01 0.00 -0.02 0.02 -0.03 0.00 0.01 NA [12,] 0.03 0.00 0.01 0.09 -0.04 0.04 0.01 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/freestat/rcomp/tmp/139tk1228336619.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/freestat/rcomp/tmp/22ml11228336619.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/freestat/rcomp/tmp/39cj31228336619.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/freestat/rcomp/tmp/4h7pb1228336619.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,] 1.01 1.000 1.000 1.00 1.060 1.150 1.220 1.22 1.170 0.950 1.000 1.000 [2,] 1.09 1.090 1.100 1.12 1.125 1.215 1.245 1.32 1.315 1.115 1.070 1.075 [3,] 1.24 1.220 1.230 1.20 1.230 1.290 1.345 1.38 1.495 1.255 1.190 1.195 [4,] 1.32 1.385 1.385 1.41 1.435 1.480 1.495 1.73 1.660 1.330 1.305 1.305 [5,] 1.39 1.400 1.400 1.45 1.500 1.630 1.730 1.85 1.830 1.350 1.360 1.330 $n [1] 8 8 8 8 8 8 8 8 8 8 8 8 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 1.111519 1.055209 1.070795 1.038002 1.056830 1.141967 1.205346 1.150968 [2,] 1.368481 1.384791 1.389205 1.361998 1.403170 1.438033 1.484654 1.609032 [,9] [,10] [,11] [,12] [1,] 1.302278 1.134898 1.058726 1.066519 [2,] 1.687722 1.375102 1.321274 1.323481 $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(1.01, 1.09, 1.24, 1.32, 1.39, 1, 1.09, 1.22, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/freestat/rcomp/tmp/5sqmj1228336619.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] [1,] -0.040 -0.020 -0.050 -0.010 0.000 0.010 -0.060 -0.09 -0.540 -0.090 -0.03 [2,] -0.010 -0.015 -0.005 0.005 0.050 0.015 0.025 -0.05 -0.380 -0.065 -0.01 [3,] 0.005 0.000 0.005 0.025 0.065 0.025 0.105 -0.03 -0.235 -0.030 0.00 [4,] 0.015 0.025 0.030 0.055 0.110 0.090 0.150 0.06 -0.160 0.010 0.01 [5,] 0.020 0.040 0.070 0.070 0.160 0.100 0.310 0.14 -0.150 0.050 0.02 [,12] [1,] -0.040 [2,] 0.005 [3,] 0.010 [4,] 0.035 [5,] 0.040 $n [1] 8 8 8 8 8 8 8 8 8 8 8 7 $conf [,1] [,2] [,3] [,4] [,5] [,6] [1,] -0.008965359 -0.02234457 -0.01455150 -0.002930718 0.03148314 -0.01689608 [2,] 0.018965359 0.02234457 0.02455150 0.052930718 0.09851686 0.06689608 [,7] [,8] [,9] [,10] [,11] [,12] [1,] 0.03517321 -0.09144758 -0.3578952 -0.07189608 -0.01117229 -0.007915516 [2,] 0.17482679 0.03144758 -0.1121048 0.01189608 0.01117229 0.027915516 $out [1] 0.11 0.09 $group [1] 1 12 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" "11" "12" Warning message: In bxp(list(stats = c(-0.04, -0.01, 0.005, 0.0149999999999999, 0.0199999999999998, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/freestat/rcomp/tmp/69vz01228336620.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] [1,] 1.14 0.950 1.00 1.010 1.290 1.270 1.20 1.170 NA [2,] 1.22 1.075 1.00 1.075 1.355 1.350 1.33 1.180 NA [3,] 1.27 1.160 1.03 1.200 1.395 1.415 1.40 1.200 NA [4,] 1.40 1.190 1.23 1.335 1.440 1.680 1.53 1.235 NA [5,] 1.62 1.220 1.34 1.510 1.480 1.840 1.83 1.300 NA $n [1] 12 12 12 12 12 12 12 12 0 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 1.187901 1.107548 0.9250955 1.081412 1.356231 1.264485 1.308779 1.174914 [2,] 1.352099 1.212452 1.1349045 1.318588 1.433769 1.565515 1.491221 1.225086 [,9] [1,] NA [2,] NA $out [1] 1.85 1.33 $group [1] 7 8 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" NA Warning message: In bxp(list(stats = c(1.14, 1.22, 1.27, 1.4, 1.62, 0.95, 1.075, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/freestat/rcomp/tmp/7hzqx1228336620.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.185000 1.1900 1.201250 [2,] 1.212500 1.2100 1.224375 [3,] 1.233750 1.2350 1.261875 [4,] 1.366875 1.3175 1.349375 [5,] 1.492500 1.3800 1.502500 $n [1] 12 12 12 $conf [,1] [,2] [,3] [1,] 1.163339 1.185969 1.204862 [2,] 1.304161 1.284031 1.318888 $out [1] 1.495 $group [1] 2 $names [1] "mean" "median" "midrange" Warning message: In bxp(list(stats = c(1.185, 1.2125, 1.23375, 1.366875, 1.4925, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > > system("convert tmp/139tk1228336619.ps tmp/139tk1228336619.png") > system("convert tmp/22ml11228336619.ps tmp/22ml11228336619.png") > system("convert tmp/39cj31228336619.ps tmp/39cj31228336619.png") > system("convert tmp/4h7pb1228336619.ps tmp/4h7pb1228336619.png") > system("convert tmp/5sqmj1228336619.ps tmp/5sqmj1228336619.png") > system("convert tmp/69vz01228336620.ps tmp/69vz01228336620.png") > system("convert tmp/7hzqx1228336620.ps tmp/7hzqx1228336620.png") > > > proc.time() user system elapsed 1.893 1.490 2.251