R version 2.12.1 (2010-12-16) 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(2435,1379,1511,2021,1614,1680,1630,870,1877,2428,1711,127,3192,1934,2075,1700,1198,1582,1705,911,1817,1168,920,84,2254,1485,1886,1358,1167,1781,1218,779,1418,1641,1196,132,2926,1777,2094,1648,1646,1537,1917,977,1475,2124,1209,135,2917,1981,1398,1171,903,1390,1280,781,1828,1631,1063,186,2275,1342,1070,950,1121,1305,1586,548,1225,1419,880,124,2044,1143,897,1264,1326,1529,1373,587,1137,1426,1016,176,2614) > 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,] 2435 3192 2254 2926 2917 2275 2044 2614 [2,] 1379 1934 1485 1777 1981 1342 1143 NA [3,] 1511 2075 1886 2094 1398 1070 897 NA [4,] 2021 1700 1358 1648 1171 950 1264 NA [5,] 1614 1198 1167 1646 903 1121 1326 NA [6,] 1680 1582 1781 1537 1390 1305 1529 NA [7,] 1630 1705 1218 1917 1280 1586 1373 NA [8,] 870 911 779 977 781 548 587 NA [9,] 1877 1817 1418 1475 1828 1225 1137 NA [10,] 2428 1168 1641 2124 1631 1419 1426 NA [11,] 1711 920 1196 1209 1063 880 1016 NA [12,] 127 84 132 135 186 124 176 NA > darr [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] -1056 -1258 -769 -1149 -936 -933 -901 NA [2,] 132 141 401 317 -583 -272 -246 NA [3,] 510 -375 -528 -446 -227 -120 367 NA [4,] -407 -502 -191 -2 -268 171 62 NA [5,] 66 384 614 -109 487 184 203 NA [6,] -50 123 -563 380 -110 281 -156 NA [7,] -760 -794 -439 -940 -499 -1038 -786 NA [8,] 1007 906 639 498 1047 677 550 NA [9,] 551 -649 223 649 -197 194 289 NA [10,] -717 -248 -445 -915 -568 -539 -410 NA [11,] -1584 -836 -1064 -1074 -877 -756 -840 NA [12,] 3065 2170 2794 2782 2089 1920 2438 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/1i48d1301337927.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/2t69y1301337927.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/3qh461301337927.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/4q3am1301337927.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] [,10] [,11] [1,] 2044.0 1143.0 897.0 950.0 903 1305.0 1218.0 548.0 1137.0 1168.0 880.0 [2,] 2264.5 1360.5 1234.0 1217.5 1144 1459.5 1326.5 683.0 1321.5 1422.5 968.0 [3,] 2524.5 1485.0 1511.0 1358.0 1198 1537.0 1586.0 781.0 1475.0 1631.0 1063.0 [4,] 2921.5 1855.5 1980.5 1674.0 1470 1631.0 1667.5 890.5 1822.5 1882.5 1202.5 [5,] 3192.0 1981.0 2094.0 2021.0 1646 1781.0 1917.0 977.0 1877.0 2428.0 1209.0 [,12] [1,] 84.0 [2,] 125.5 [3,] 132.0 [4,] 155.5 [5,] 186.0 $n [1] 8 7 7 7 7 7 7 7 7 7 7 7 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 2157.490 1189.394 1065.202 1085.386 1003.318 1434.583 1382.360 657.0843 [2,] 2891.510 1780.606 1956.798 1630.614 1392.682 1639.417 1789.640 904.9157 [,9] [,10] [,11] [,12] [1,] 1175.811 1356.295 922.9604 114.0845 [2,] 1774.189 1905.705 1203.0396 149.9155 $out [1] 1711 $group [1] 11 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" "11" "12" Warning message: In bxp(list(stats = c(2044, 2264.5, 2524.5, 2921.5, 3192, 1143, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/rcomp/tmp/5vlgz1301337927.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] [,9] [,10] [,11] [1,] -1258.0 -583 -528.0 -502.0 -109.0 -563 -1038.0 498.0 -197.0 -915.0 -1074 [2,] -1102.5 -259 -410.5 -337.5 125.0 -133 -867.0 594.5 -1.5 -642.5 -1069 [3,] -936.0 132 -227.0 -191.0 203.0 -50 -786.0 677.0 223.0 -539.0 -877 [4,] -917.0 229 123.5 30.0 435.5 202 -629.5 956.5 420.0 -427.5 -838 [5,] -769.0 401 510.0 171.0 614.0 380 -439.0 1047.0 649.0 -248.0 -756 [,12] [1,] 1920.0 [2,] 2129.5 [3,] 2438.0 [4,] 2788.0 [5,] 3065.0 $n [1] 7 7 7 7 7 7 7 7 7 7 7 7 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] -1046.7776 -159.4257 -545.89619 -410.46507 17.57441 -250.0566 -927.8312 [2,] -825.2224 423.4257 91.89619 28.46507 388.42559 150.0566 -644.1688 [,8] [,9] [,10] [,11] [,12] [1,] 460.8194 -28.713 -667.3945 -1014.9495 2044.754 [2,] 893.1806 474.713 -410.6055 -739.0505 2831.246 $out [1] -649 -1584 $group [1] 9 11 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" "11" "12" Warning message: In bxp(list(stats = c(-1258, -1102.5, -936, -917, -769, -583, -259, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/rcomp/tmp/6ab1y1301337927.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] [1,] 870 84.0 779.0 977.0 186.0 548.0 587.0 2614 [2,] 1445 1044.0 1181.5 1342.0 983.0 915.0 956.5 2614 [3,] 1655 1641.0 1388.0 1647.0 1335.0 1173.0 1203.5 2614 [4,] 1949 1875.5 1711.0 2005.5 1729.5 1380.5 1399.5 2614 [5,] 2435 2075.0 2254.0 2926.0 1981.0 1586.0 2044.0 2614 $n [1] 12 12 12 12 12 12 12 1 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 1425.122 1261.747 1146.491 1344.373 994.5163 960.6823 1001.445 2614 [2,] 1884.878 2020.253 1629.509 1949.627 1675.4837 1385.3177 1405.555 2614 $out [1] 127 3192 132 135 2917 2275 124 176 $group [1] 1 2 3 4 5 6 6 7 $names [1] "1" "2" "3" "4" "5" "6" "7" NA Warning message: In bxp(list(stats = c(870, 1445, 1655, 1949, 2435, 84, 1044, 1641, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/rcomp/tmp/7t6hy1301337927.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,] 779.000 781.0 786.750 [2,] 1212.143 1130.5 1196.125 [3,] 1534.714 1480.0 1521.125 [4,] 1569.429 1561.5 1607.625 [5,] 1691.000 1631.0 1652.500 $n [1] 12 12 12 $conf [,1] [,2] [,3] [1,] 1371.754 1283.418 1333.437 [2,] 1697.675 1676.582 1708.813 $out [1] 2582.1250 137.7143 2524.5000 132.0000 2594.5000 140.5000 $group [1] 1 1 2 2 3 3 $names [1] "mean" "median" "midrange" Warning message: In bxp(list(stats = c(779, 1212.14285714286, 1534.71428571429, 1569.42857142857, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > > try(system("convert tmp/1i48d1301337927.ps tmp/1i48d1301337927.png",intern=TRUE)) character(0) > try(system("convert tmp/2t69y1301337927.ps tmp/2t69y1301337927.png",intern=TRUE)) character(0) > try(system("convert tmp/3qh461301337927.ps tmp/3qh461301337927.png",intern=TRUE)) character(0) > try(system("convert tmp/4q3am1301337927.ps tmp/4q3am1301337927.png",intern=TRUE)) character(0) > try(system("convert tmp/5vlgz1301337927.ps tmp/5vlgz1301337927.png",intern=TRUE)) character(0) > try(system("convert tmp/6ab1y1301337927.ps tmp/6ab1y1301337927.png",intern=TRUE)) character(0) > try(system("convert tmp/7t6hy1301337927.ps tmp/7t6hy1301337927.png",intern=TRUE)) character(0) > > > proc.time() user system elapsed 2.064 0.356 2.407