R version 2.6.2 (2008-02-08) 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. Natural language support but running in an English locale 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.1591,1.1203,1.0886,1.0701,1.0630,1.0377,1.0370,1.0606,1.0497,1.0706,1.0328,1.0110,1.0131,0.9834,0.9643,0.9449,0.9059,0.9505,0.9386,0.9045,0.8695,0.8525,0.8552,0.8983,0.9376,0.9205,0.9083,0.8925,0.8753,0.8530,0.8615,0.9014,0.9114,0.9050,0.8883,0.8912,0.8832,0.8706,0.8766,0.8860,0.9170,0.9561,0.9935,0.9781,0.9806,0.9812,1.0013,1.0194,1.0622,1.0785,1.0805,1.0862,1.1556,1.1674,1.1365,1.1155,1.1266,1.1714,1.1710,1.2298,1.2638,1.2640,1.2261,1.1989,1.2000,1.2146,1.2266,1.2191,1.2224,1.2507,1.2997,1.3406) > 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] 72 > (np <- floor(n / par1)) [1] 6 > 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] 6 6 6 6 6 6 6 6 6 6 6 6 > arr [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] 1.1591 1.0131 0.9376 0.8832 1.0622 1.2638 NA [2,] 1.1203 0.9834 0.9205 0.8706 1.0785 1.2640 NA [3,] 1.0886 0.9643 0.9083 0.8766 1.0805 1.2261 NA [4,] 1.0701 0.9449 0.8925 0.8860 1.0862 1.1989 NA [5,] 1.0630 0.9059 0.8753 0.9170 1.1556 1.2000 NA [6,] 1.0377 0.9505 0.8530 0.9561 1.1674 1.2146 NA [7,] 1.0370 0.9386 0.8615 0.9935 1.1365 1.2266 NA [8,] 1.0606 0.9045 0.9014 0.9781 1.1155 1.2191 NA [9,] 1.0497 0.8695 0.9114 0.9806 1.1266 1.2224 NA [10,] 1.0706 0.8525 0.9050 0.9812 1.1714 1.2507 NA [11,] 1.0328 0.8552 0.8883 1.0013 1.1710 1.2997 NA [12,] 1.0110 0.8983 0.8912 1.0194 1.2298 1.3406 NA > darr [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] -0.0388 -0.0297 -0.0171 -0.0126 0.0163 0.0002 NA [2,] -0.0317 -0.0191 -0.0122 0.0060 0.0020 -0.0379 NA [3,] -0.0185 -0.0194 -0.0158 0.0094 0.0057 -0.0272 NA [4,] -0.0071 -0.0390 -0.0172 0.0310 0.0694 0.0011 NA [5,] -0.0253 0.0446 -0.0223 0.0391 0.0118 0.0146 NA [6,] -0.0007 -0.0119 0.0085 0.0374 -0.0309 0.0120 NA [7,] 0.0236 -0.0341 0.0399 -0.0154 -0.0210 -0.0075 NA [8,] -0.0109 -0.0350 0.0100 0.0025 0.0111 0.0033 NA [9,] 0.0209 -0.0170 -0.0064 0.0006 0.0448 0.0283 NA [10,] -0.0378 0.0027 -0.0167 0.0201 -0.0004 0.0490 NA [11,] -0.0218 0.0431 0.0029 0.0181 0.0588 0.0409 NA [12,] 0.0021 0.0393 -0.0080 0.0428 0.0340 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/1qmx01209225745.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/26kcq1209225745.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/357du1209225745.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/4mch91209225745.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] [1,] 0.88320 0.87060 0.8766 0.8860 0.8753 0.8530 0.86150 0.90140 0.86950 0.8525 [2,] 0.93760 0.92050 0.9083 0.8925 0.9059 0.9505 0.93860 0.90450 0.91140 0.9050 [3,] 1.03765 1.03095 1.0224 1.0075 0.9900 0.9969 1.01525 1.01935 1.01515 1.0259 [4,] 1.15910 1.12030 1.0886 1.0862 1.1556 1.1674 1.13650 1.11550 1.12660 1.1714 [5,] 1.26380 1.26400 1.2261 1.1989 1.2000 1.2146 1.22660 1.21910 1.22240 1.2507 [,11] [,12] [1,] 0.85520 0.8912 [2,] 0.88830 0.8983 [3,] 1.01705 1.0152 [4,] 1.17100 1.2298 [5,] 1.29970 1.3406 $n [1] 6 6 6 6 6 6 6 6 6 6 6 6 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] 0.8947753 0.9020725 0.9061007 0.8825572 0.8289354 0.8569925 0.8875981 [2,] 1.1805247 1.1598275 1.1386993 1.1324428 1.1510646 1.1368075 1.1429019 [,8] [,9] [,10] [,11] [,12] [1,] 0.8832482 0.876339 0.8540634 0.8346994 0.8013718 [2,] 1.1554518 1.153961 1.1977366 1.1994006 1.2290282 $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.8832, 0.9376, 1.03765, 1.1591, 1.2638, 0.8706, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/freestat/rcomp/tmp/58c7c1209225745.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] [1,] -0.03880 -0.03790 -0.02720 -0.0390 -0.0253 -0.0309 -0.03410 -0.0350 [2,] -0.02970 -0.03170 -0.01940 -0.0172 -0.0223 -0.0119 -0.02100 -0.0109 [3,] -0.01485 -0.01565 -0.01715 -0.0030 0.0132 0.0039 -0.01145 0.0029 [4,] 0.00020 0.00200 0.00570 0.0310 0.0391 0.0120 0.02360 0.0100 [5,] 0.01630 0.00600 0.00940 0.0694 0.0446 0.0374 0.03990 0.0111 [,9] [,10] [,11] [,12] [1,] -0.01700 -0.03780 -0.0218 -0.0080 [2,] -0.00640 -0.01670 0.0029 0.0021 [3,] 0.01075 0.00115 0.0295 0.0340 [4,] 0.02830 0.02010 0.0431 0.0393 [5,] 0.04480 0.04900 0.0588 0.0428 $n [1] 6 6 6 6 6 6 6 6 6 6 6 5 $conf [,1] [,2] [,3] [,4] [,5] [1,] -0.034136466 -0.037387588 -0.0333403107 -0.03409056 -0.02640498 [2,] 0.004436466 0.006087588 -0.0009596893 0.02809056 0.05280498 [,6] [,7] [,8] [,9] [,10] [,11] [1,] -0.01151627 -0.04021844 -0.01058118 -0.01163262 -0.02258719 0.003569702 [2,] 0.01931627 0.01731844 0.01638118 0.03313262 0.02488719 0.055430298 [,12] [1,] 0.007714574 [2,] 0.060285426 $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.0387999999999999, -0.0296999999999998, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/freestat/rcomp/tmp/6jkde1209225745.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] [1,] 1.01100 0.85250 0.85300 0.87060 1.06220 1.19890 NA [2,] 1.03735 0.88390 0.88180 0.88460 1.08335 1.21685 NA [3,] 1.06180 0.92225 0.89695 0.96710 1.13155 1.22635 NA [4,] 1.07960 0.95740 0.90985 0.98735 1.16920 1.26390 NA [5,] 1.12030 1.01310 0.93760 1.01940 1.22980 1.29970 NA $n [1] 12 12 12 12 12 12 0 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] 1.042529 0.8887262 0.8841562 0.920235 1.092393 1.204890 NA [2,] 1.081071 0.9557738 0.9097438 1.013965 1.170707 1.247810 NA $out [1] 1.1591 1.3406 $group [1] 1 6 $names [1] "1" "2" "3" "4" "5" "6" NA Warning message: In bxp(list(stats = c(1.011, 1.03735, 1.0618, 1.0796, 1.1203, 0.8525, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/freestat/rcomp/tmp/75mjp1209225745.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.013100 0.996900 0.9938875 [2,] 1.025383 1.011325 1.0151875 [3,] 1.031083 1.016150 1.0247688 [4,] 1.040467 1.024150 1.0392812 [5,] 1.053167 1.037650 1.0518375 $n [1] 12 12 12 $conf [,1] [,2] [,3] [1,] 1.024204 1.010300 1.013779 [2,] 1.037963 1.022000 1.035758 $out [1] 1.06505 0.99000 $group [1] 1 2 $names [1] "mean" "median" "midrange" Warning message: In bxp(list(stats = c(1.0131, 1.02538333333333, 1.03108333333333, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > > system("convert tmp/1qmx01209225745.ps tmp/1qmx01209225745.png") > system("convert tmp/26kcq1209225745.ps tmp/26kcq1209225745.png") > system("convert tmp/357du1209225745.ps tmp/357du1209225745.png") > system("convert tmp/4mch91209225745.ps tmp/4mch91209225745.png") > system("convert tmp/58c7c1209225745.ps tmp/58c7c1209225745.png") > system("convert tmp/6jkde1209225745.ps tmp/6jkde1209225745.png") > system("convert tmp/75mjp1209225745.ps tmp/75mjp1209225745.png") > > > proc.time() user system elapsed 2.145 1.413 2.335