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(9.026,9.787,9.536,9.490,9.736,9.694,9.647,9.753,10.070,10.137,9.984,9.732,9.103,9.155,9.308,9.394,9.948,10.177,10.002,9.728,10.002,10.063,10.018,9.960,10.236,10.893,10.756,10.940,10.997,10.827,10.166,10.186,10.457,10.368,10.244,10.511,10.812,10.738,10.171,9.721,9.897,9.828,9.924,10.371,10.846,10.413,10.709,10.662,10.570,10.297,10.635,10.872,10.296,10.383,10.431,10.574,10.653,10.805,10.872,10.625,10.407,10.463,10.556,10.646,10.702,11.353,11.346,11.451,11.964,12.574,13.031,13.812,14.544,14.931,14.886,16.005,17.064,15.168,16.050,15.839,15.137,14.954,15.648,15.305) > 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] 84 > (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] 7 7 7 7 7 7 7 7 7 7 7 7 > arr [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 9.026 9.103 10.236 10.812 10.570 10.407 14.544 NA [2,] 9.787 9.155 10.893 10.738 10.297 10.463 14.931 NA [3,] 9.536 9.308 10.756 10.171 10.635 10.556 14.886 NA [4,] 9.490 9.394 10.940 9.721 10.872 10.646 16.005 NA [5,] 9.736 9.948 10.997 9.897 10.296 10.702 17.064 NA [6,] 9.694 10.177 10.827 9.828 10.383 11.353 15.168 NA [7,] 9.647 10.002 10.166 9.924 10.431 11.346 16.050 NA [8,] 9.753 9.728 10.186 10.371 10.574 11.451 15.839 NA [9,] 10.070 10.002 10.457 10.846 10.653 11.964 15.137 NA [10,] 10.137 10.063 10.368 10.413 10.805 12.574 14.954 NA [11,] 9.984 10.018 10.244 10.709 10.872 13.031 15.648 NA [12,] 9.732 9.960 10.511 10.662 10.625 13.812 15.305 NA > darr [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 0.761 0.052 0.657 -0.074 -0.273 0.056 0.387 NA [2,] -0.251 0.153 -0.137 -0.567 0.338 0.093 -0.045 NA [3,] -0.046 0.086 0.184 -0.450 0.237 0.090 1.119 NA [4,] 0.246 0.554 0.057 0.176 -0.576 0.056 1.059 NA [5,] -0.042 0.229 -0.170 -0.069 0.087 0.651 -1.896 NA [6,] -0.047 -0.175 -0.661 0.096 0.048 -0.007 0.882 NA [7,] 0.106 -0.274 0.020 0.447 0.143 0.105 -0.211 NA [8,] 0.317 0.274 0.271 0.475 0.079 0.513 -0.702 NA [9,] 0.067 0.061 -0.089 -0.433 0.152 0.610 -0.183 NA [10,] -0.153 -0.045 -0.124 0.296 0.067 0.457 0.694 NA [11,] -0.252 -0.058 0.267 -0.047 -0.247 0.781 -0.343 NA [12,] -0.629 0.276 0.301 -0.092 -0.218 0.732 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/1q2m31228049837.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/26kbs1228049837.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/3gtdi1228049837.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/4srmj1228049837.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] [1,] 9.0260 9.1550 9.3080 9.3940 9.7360 9.6940 9.6470 9.7280 10.0020 [2,] 9.6695 10.0420 9.8535 9.6055 9.9225 10.0025 9.9630 9.9695 10.2635 [3,] 10.4070 10.4630 10.5560 10.6460 10.2960 10.3830 10.1660 10.3710 10.6530 [4,] 10.6910 10.8155 10.6955 10.9060 10.8495 11.0900 10.8885 11.0125 11.4050 [5,] 10.8120 10.8930 10.7560 10.9400 10.9970 11.3530 11.3460 11.4510 11.9640 [,10] [,11] [,12] [1,] 10.0630 9.9840 9.7320 [2,] 10.2525 10.1310 10.2355 [3,] 10.4130 10.7090 10.6250 [4,] 11.6895 11.9515 12.2370 [5,] 12.5740 13.0310 13.8120 $n [1] 7 7 7 7 7 7 7 7 7 7 7 7 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] 9.796977 10.00108 10.05317 9.869362 9.74241 9.733563 9.613306 [2,] 11.017023 10.92492 11.05883 11.422638 10.84959 11.032437 10.718694 [,8] [,9] [,10] [,11] [,12] [1,] 9.748137 9.971315 9.554847 9.621827 9.429736 [2,] 10.993863 11.334685 11.271153 11.796173 11.820264 $out [1] 14.544 14.931 14.886 16.005 17.064 15.168 16.050 15.839 15.137 14.954 [11] 15.648 15.305 $group [1] 1 2 3 4 5 6 7 8 9 10 11 12 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" "11" "12" Warning message: In bxp(list(stats = c(9.026, 9.6695, 10.407, 10.691, 10.812, 9.155, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/5wenb1228049837.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] [1,] -0.273 -0.567 -0.0460 0.0560 -0.1700 -0.175 -0.2740 0.079 -0.4330 -0.1530 [2,] -0.011 -0.194 0.0200 0.0565 -0.1195 -0.111 -0.0955 0.175 -0.1360 -0.0845 [3,] 0.056 -0.045 0.0900 0.1760 -0.0420 -0.007 0.1050 0.274 0.0610 0.0670 [4,] 0.522 0.123 0.2105 0.4000 0.1580 0.072 0.1245 0.396 0.1095 0.3765 [5,] 0.761 0.338 0.2370 0.5540 0.2290 0.096 0.4470 0.513 0.1520 0.6940 [,11] [,12] [1,] -0.3430 -0.629 [2,] -0.2495 -0.218 [3,] -0.0580 0.092 [4,] 0.1100 0.301 [5,] 0.2670 0.732 $n [1] 7 7 7 7 7 7 7 7 7 7 7 6 $conf [,1] [,2] [,3] [,4] [,5] [,6] [1,] -0.262299 -0.2343073 -0.02376353 -0.02913266 -0.2077185 -0.1162846 [2,] 0.374299 0.1443073 0.20376353 0.38113266 0.1237185 0.1022846 [,7] [,8] [,9] [,10] [,11] [,12] [1,] -0.02638045 0.1420224 -0.08560864 -0.2083018 -0.2726876 -0.2427718 [2,] 0.23638045 0.4059776 0.20760864 0.3423018 0.1566876 0.4267718 $out [1] -0.450 1.119 -0.576 1.059 0.651 -1.896 -0.661 0.882 -0.702 0.610 [11] 0.781 $group [1] 3 3 4 4 5 5 6 6 8 9 11 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" "11" "12" Warning message: In bxp(list(stats = c(-0.273000000000000, -0.0110000000000001, 0.0559999999999992, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/6dghx1228049837.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,] 9.4900 9.103 10.166 9.7210 10.2960 10.4070 14.5440 NA [2,] 9.5915 9.351 10.240 9.9105 10.4070 10.6010 14.9425 NA [3,] 9.7340 9.954 10.484 10.3920 10.5995 11.3495 15.2365 NA [4,] 9.8855 10.010 10.860 10.7235 10.7290 12.2690 15.9220 NA [5,] 10.1370 10.177 10.997 10.8460 10.8720 13.8120 17.0640 NA $n [1] 12 12 12 12 12 12 12 0 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 9.599905 9.653426 10.20121 10.02119 10.45263 10.58871 14.78974 NA [2,] 9.868095 10.254574 10.76679 10.76281 10.74637 12.11029 15.68326 NA $out [1] 9.026 $group [1] 1 $names [1] "1" "2" "3" "4" "5" "6" "7" NA Warning message: In bxp(list(stats = c(9.49, 9.5915, 9.734, 9.8855, 10.137, 9.103, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/70laa1228049837.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,] 10.67114 10.1660 10.18025 [2,] 10.95229 10.3770 10.33025 [3,] 11.10486 10.4380 10.45988 [4,] 11.31736 10.6355 10.90263 [5,] 11.51529 10.7090 11.23625 $n [1] 12 12 12 $conf [,1] [,2] [,3] [1,] 10.93835 10.32010 10.19881 [2,] 11.27137 10.55590 10.72094 $out numeric(0) $group numeric(0) $names [1] "mean" "median" "midrange" Warning message: In bxp(list(stats = c(10.6711428571429, 10.9522857142857, 11.1048571428571, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > > system("convert tmp/1q2m31228049837.ps tmp/1q2m31228049837.png") > system("convert tmp/26kbs1228049837.ps tmp/26kbs1228049837.png") > system("convert tmp/3gtdi1228049837.ps tmp/3gtdi1228049837.png") > system("convert tmp/4srmj1228049837.ps tmp/4srmj1228049837.png") > system("convert tmp/5wenb1228049837.ps tmp/5wenb1228049837.png") > system("convert tmp/6dghx1228049837.ps tmp/6dghx1228049837.png") > system("convert tmp/70laa1228049837.ps tmp/70laa1228049837.png") > > > proc.time() user system elapsed 1.198 0.929 1.478