R version 2.12.0 (2010-10-15) Copyright (C) 2010 The R Foundation for Statistical Computing ISBN 3-900051-07-0 Platform: i486-pc-linux-gnu (32-bit) 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.0213,0.0218,0.0290,0.0263,0.0267,0.0181,0.0133,0.0088,0.0128,0.0126,0.0126,0.0129,0.0110,0.0137,0.0121,0.0174,0.0176,0.0148,0.0104,0.0162,0.0149,0.0179,0.0180,0.0158,0.0186,0.0174,0.0159,0.0126,0.0113,0.0192,0.0261,0.0226,0.0241,0.0226,0.0203,0.0286,0.0255,0.0227,0.0226,0.0257,0.0307,0.0276,0.0251,0.0287,0.0314,0.0311,0.0316,0.0247,0.0257,0.0289,0.0263,0.0238,0.0169,0.0196,0.0219,0.0187,0.0160,0.0163,0.0122,0.0121,0.0149,0.0164,0.0166,0.0177,0.0182,0.0178,0.0128,0.0129,0.0137,0.0112,0.0151,0.0224,0.0294,0.0309,0.0346,0.0364,0.0439,0.0415,0.0521,0.0580,0.0591,0.0539,0.0546,0.0472,0.0314,0.0263,0.0232,0.0193,0.0062,0.0060,-0.0037,-0.0110,-0.0168,-0.0078,-0.0119,-0.0097,-0.0012,0.0026,0.0062,0.0070,0.0166,0.0180,0.0227,0.0246,0.0257,0.0232,0.0291,0.0301,0.0286,0.0310,0.0322,0.0339,0.0352,0.0341,0.0335,0.0367,0.0375,0.0360,0.0355,0.0357) > 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] 120 > (np <- floor(n / par1)) [1] 10 > 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] 10 10 10 10 10 10 10 10 10 10 10 10 > arr [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [,9] [,10] [1,] 0.0213 0.0110 0.0186 0.0255 0.0257 0.0149 0.0294 0.0314 -0.0012 0.0286 [2,] 0.0218 0.0137 0.0174 0.0227 0.0289 0.0164 0.0309 0.0263 0.0026 0.0310 [3,] 0.0290 0.0121 0.0159 0.0226 0.0263 0.0166 0.0346 0.0232 0.0062 0.0322 [4,] 0.0263 0.0174 0.0126 0.0257 0.0238 0.0177 0.0364 0.0193 0.0070 0.0339 [5,] 0.0267 0.0176 0.0113 0.0307 0.0169 0.0182 0.0439 0.0062 0.0166 0.0352 [6,] 0.0181 0.0148 0.0192 0.0276 0.0196 0.0178 0.0415 0.0060 0.0180 0.0341 [7,] 0.0133 0.0104 0.0261 0.0251 0.0219 0.0128 0.0521 -0.0037 0.0227 0.0335 [8,] 0.0088 0.0162 0.0226 0.0287 0.0187 0.0129 0.0580 -0.0110 0.0246 0.0367 [9,] 0.0128 0.0149 0.0241 0.0314 0.0160 0.0137 0.0591 -0.0168 0.0257 0.0375 [10,] 0.0126 0.0179 0.0226 0.0311 0.0163 0.0112 0.0539 -0.0078 0.0232 0.0360 [11,] 0.0126 0.0180 0.0203 0.0316 0.0122 0.0151 0.0546 -0.0119 0.0291 0.0355 [12,] 0.0129 0.0158 0.0286 0.0247 0.0121 0.0224 0.0472 -0.0097 0.0301 0.0357 [,11] [1,] NA [2,] NA [3,] NA [4,] NA [5,] NA [6,] NA [7,] NA [8,] NA [9,] NA [10,] NA [11,] NA [12,] NA > darr [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [,9] [1,] 0.0005 0.0027 -0.0012 -0.0028 0.0032 0.0015 0.0015 -0.0051 0.0038 [2,] 0.0072 -0.0016 -0.0015 -0.0001 -0.0026 0.0002 0.0037 -0.0031 0.0036 [3,] -0.0027 0.0053 -0.0033 0.0031 -0.0025 0.0011 0.0018 -0.0039 0.0008 [4,] 0.0004 0.0002 -0.0013 0.0050 -0.0069 0.0005 0.0075 -0.0131 0.0096 [5,] -0.0086 -0.0028 0.0079 -0.0031 0.0027 -0.0004 -0.0024 -0.0002 0.0014 [6,] -0.0048 -0.0044 0.0069 -0.0025 0.0023 -0.0050 0.0106 -0.0097 0.0047 [7,] -0.0045 0.0058 -0.0035 0.0036 -0.0032 0.0001 0.0059 -0.0073 0.0019 [8,] 0.0040 -0.0013 0.0015 0.0027 -0.0027 0.0008 0.0011 -0.0058 0.0011 [9,] -0.0002 0.0030 -0.0015 -0.0003 0.0003 -0.0025 -0.0052 0.0090 -0.0025 [10,] 0.0000 0.0001 -0.0023 0.0005 -0.0041 0.0039 0.0007 -0.0041 0.0059 [11,] 0.0003 -0.0022 0.0083 -0.0069 -0.0001 0.0073 -0.0074 0.0022 0.0010 [12,] -0.0019 0.0028 -0.0031 0.0010 0.0028 0.0070 -0.0158 0.0085 -0.0015 [,10] [,11] [1,] 0.0024 NA [2,] 0.0012 NA [3,] 0.0017 NA [4,] 0.0013 NA [5,] -0.0011 NA [6,] -0.0006 NA [7,] 0.0032 NA [8,] 0.0008 NA [9,] -0.0015 NA [10,] -0.0005 NA [11,] 0.0002 NA [12,] 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/rcomp/tmp/10w441324577572.ps",horizontal=F,onefile=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/rcomp/tmp/2sko61324577572.ps",horizontal=F,onefile=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/rcomp/tmp/311oz1324577572.ps",horizontal=F,onefile=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/rcomp/tmp/4heiv1324577572.ps",horizontal=F,onefile=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,] -0.0012 0.00260 0.0062 0.00700 0.0062 0.00600 -0.0037 0.00880 0.01280 [2,] 0.0149 0.01640 0.0159 0.01740 0.0166 0.01780 0.0128 0.01290 0.01370 [3,] 0.0234 0.02225 0.0229 0.02155 0.0179 0.01865 0.0223 0.02065 0.02005 [4,] 0.0286 0.02890 0.0290 0.02630 0.0307 0.02760 0.0261 0.02870 0.03140 [5,] 0.0314 0.03100 0.0346 0.03640 0.0439 0.04150 0.0335 0.03670 0.03750 [,10] [,11] [,12] [1,] -0.00780 -0.01190 -0.00970 [2,] 0.01260 0.01260 0.01290 [3,] 0.02025 0.01915 0.02355 [4,] 0.03110 0.03160 0.03010 [5,] 0.05390 0.05460 0.04720 $n [1] 10 10 10 10 10 10 10 10 10 10 10 10 $conf [,1] [,2] [,3] [,4] [,5] [,6] [1,] 0.01655493 0.01600450 0.01635472 0.01710321 0.01085508 0.01375353 [2,] 0.03024507 0.02849550 0.02944528 0.02599679 0.02494492 0.02354647 [,7] [,8] [,9] [,10] [,11] [,12] [1,] 0.01565479 0.01275569 0.01120637 0.01100666 0.009656842 0.01495619 [2,] 0.02894521 0.02854431 0.02889363 0.02949334 0.028643158 0.03214381 $out [1] 0.0521 0.0580 -0.0110 0.0591 -0.0168 $group [1] 7 8 8 9 9 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" "11" "12" Warning message: In bxp(list(stats = c(-0.0012, 0.0149, 0.0234, 0.0286, 0.0314, 0.0026, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/rcomp/tmp/5afj21324577572.ps",horizontal=F,onefile=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] [1,] -0.0051 -0.00310 -0.00390 -0.00690 -0.00860 -0.00970 -0.0073 -0.00270 [2,] -0.0012 -0.00160 -0.00270 -0.00130 -0.00280 -0.00480 -0.0035 -0.00130 [3,] 0.0015 0.00005 0.00095 0.00045 -0.00075 -0.00155 0.0010 0.00095 [4,] 0.0027 0.00360 0.00180 0.00500 0.00140 0.00470 0.0036 0.00150 [5,] 0.0038 0.00720 0.00530 0.00960 0.00270 0.01060 0.0059 0.00400 [,9] [,10] [,11] [,12] [1,] -0.0052 -0.00410 -0.00740 -0.0031 [2,] -0.0025 -0.00230 -0.00220 -0.0019 [3,] -0.0009 0.00005 0.00025 0.0010 [4,] 0.0003 0.00070 0.00220 0.0028 [5,] 0.0030 0.00390 0.00830 0.0085 $n [1] 10 10 10 10 10 10 10 10 10 10 10 9 $conf [,1] [,2] [,3] [,4] [,5] [1,] -0.0004485955 -0.002548127 -0.001298379 -0.002697731 -0.002848487 [2,] 0.0034485955 0.002648127 0.003198379 0.003597731 0.001348487 [,6] [,7] [,8] [,9] [,10] [1,] -0.006296579 -0.002547443 -0.0004489916 -0.0022989916 -0.001448920 [2,] 0.003196579 0.004547443 0.0023489916 0.0004989916 0.001548920 [,11] [,12] [1,] -0.001948415 -0.001475333 [2,] 0.002448415 0.003475333 $out [1] -0.0131 0.0079 -0.0058 0.0090 0.0059 -0.0158 $group [1] 4 5 8 9 10 12 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" "11" "12" Warning message: In bxp(list(stats = c(-0.0051, -0.0012, 0.0015, 0.0027, 0.0038, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/rcomp/tmp/6ocwd1324577572.ps",horizontal=F,onefile=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,] 0.00880 0.01040 0.01130 0.02260 0.01210 0.01120 0.02940 -0.01680 -0.00120 [2,] 0.01270 0.01290 0.01665 0.02490 0.01615 0.01330 0.03550 -0.01035 0.00660 [3,] 0.01570 0.01535 0.01975 0.02665 0.01915 0.01575 0.04555 0.00115 0.02035 [4,] 0.02405 0.01750 0.02335 0.03090 0.02475 0.01775 0.05425 0.02125 0.02515 [5,] 0.02900 0.01800 0.02860 0.03160 0.02890 0.02240 0.05910 0.03140 0.03010 [,10] [,11] [1,] 0.02860 NA [2,] 0.03285 NA [3,] 0.03465 NA [4,] 0.03585 NA [5,] 0.03750 NA $n [1] 12 12 12 12 12 12 12 12 12 12 0 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] 0.01052319 0.01325191 0.01669409 0.02391336 0.01522748 0.01372033 0.036998 [2,] 0.02087681 0.01744809 0.02280591 0.02938664 0.02307252 0.01777967 0.054102 [,8] [,9] [,10] [,11] [1,] -0.01326297 0.01188922 0.03328168 NA [2,] 0.01556297 0.02881078 0.03601832 NA $out numeric(0) $group numeric(0) $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" NA Warning message: In bxp(list(stats = c(0.0088, 0.0127, 0.0157, 0.02405, 0.029, 0.0104, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/rcomp/tmp/73tnu1324577572.ps",horizontal=F,onefile=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,] 0.021170 0.01790 0.02070000 [2,] 0.021520 0.01960 0.02150000 [3,] 0.021705 0.02110 0.02183125 [4,] 0.021925 0.02260 0.02215000 [5,] 0.022330 0.02355 0.02245000 $n [1] 12 12 12 $conf [,1] [,2] [,3] [1,] 0.02152028 0.01973168 0.02153478 [2,] 0.02188972 0.02246832 0.02212772 $out [1] 0.0205200 0.0231875 0.0193875 $group [1] 1 3 3 $names [1] "mean" "median" "midrange" > dev.off() null device 1 > > try(system("convert tmp/10w441324577572.ps tmp/10w441324577572.png",intern=TRUE)) character(0) > try(system("convert tmp/2sko61324577572.ps tmp/2sko61324577572.png",intern=TRUE)) character(0) > try(system("convert tmp/311oz1324577572.ps tmp/311oz1324577572.png",intern=TRUE)) character(0) > try(system("convert tmp/4heiv1324577572.ps tmp/4heiv1324577572.png",intern=TRUE)) character(0) > try(system("convert tmp/5afj21324577572.ps tmp/5afj21324577572.png",intern=TRUE)) character(0) > try(system("convert tmp/6ocwd1324577572.ps tmp/6ocwd1324577572.png",intern=TRUE)) character(0) > try(system("convert tmp/73tnu1324577572.ps tmp/73tnu1324577572.png",intern=TRUE)) character(0) > > > proc.time() user system elapsed 2.500 0.260 2.781