R version 2.13.0 (2011-04-13) Copyright (C) 2011 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(465,455,444,424,630,620,465,362,372,372,382,403,434,424,362,372,661,723,558,465,486,496,548,599,610,506,517,382,765,878,620,537,589,651,744,858,858,785,754,568,878,1023,899,765,785,858,961,1085,1002,951,951,785,1023,1178,1054,920,961,1126,1199,1302,1219,1085,1054,806,971,1147,951,837,951,1064,1126,1292,1209,1002,1023,827,992,1137,971,858,961,1085,1064,1312,1271,1106,1116,899,1033,1240,1085,992,1147,1240,1168,1498,1416,1230,1178,940,1075,1199,1044,1044,1219,1312,1261,1622,1529,1354,1281,1023,1116,1281,1157,1126,1271,1395,1261,1581) > 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] [,11] [1,] 465 434 610 858 1002 1219 1209 1271 1416 1529 NA [2,] 455 424 506 785 951 1085 1002 1106 1230 1354 NA [3,] 444 362 517 754 951 1054 1023 1116 1178 1281 NA [4,] 424 372 382 568 785 806 827 899 940 1023 NA [5,] 630 661 765 878 1023 971 992 1033 1075 1116 NA [6,] 620 723 878 1023 1178 1147 1137 1240 1199 1281 NA [7,] 465 558 620 899 1054 951 971 1085 1044 1157 NA [8,] 362 465 537 765 920 837 858 992 1044 1126 NA [9,] 372 486 589 785 961 951 961 1147 1219 1271 NA [10,] 372 496 651 858 1126 1064 1085 1240 1312 1395 NA [11,] 382 548 744 961 1199 1126 1064 1168 1261 1261 NA [12,] 403 599 858 1085 1302 1292 1312 1498 1622 1581 NA > darr [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [,9] [,10] [,11] [1,] -10 -10 -104 -73 -51 -134 -207 -165 -186 -175 NA [2,] -11 -62 11 -31 0 -31 21 10 -52 -73 NA [3,] -20 10 -135 -186 -166 -248 -196 -217 -238 -258 NA [4,] 206 289 383 310 238 165 165 134 135 93 NA [5,] -10 62 113 145 155 176 145 207 124 165 NA [6,] -155 -165 -258 -124 -124 -196 -166 -155 -155 -124 NA [7,] -103 -93 -83 -134 -134 -114 -113 -93 0 -31 NA [8,] 10 21 52 20 41 114 103 155 175 145 NA [9,] 0 10 62 73 165 113 124 93 93 124 NA [10,] 10 52 93 103 73 62 -21 -72 -51 -134 NA [11,] 21 51 114 124 103 166 248 330 361 320 NA [12,] 31 11 0 -83 -83 -83 -41 -82 -93 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/wessaorg/rcomp/tmp/1lgu71312546760.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/wessaorg/rcomp/tmp/2b6e01312546760.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/wessaorg/rcomp/tmp/3cib21312546760.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/wessaorg/rcomp/tmp/4o3ik1312546760.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] [,12] [1,] 434.0 424.0 362 372.0 630.0 620 465 362.0 372 372.0 382 403 [2,] 610.0 506.0 517 424.0 765.0 878 620 537.0 589 651.0 744 858 [3,] 1105.5 976.5 987 795.5 981.5 1142 961 847.5 956 1074.5 1095 1297 [4,] 1271.0 1106.0 1116 899.0 1033.0 1199 1054 992.0 1147 1240.0 1199 1498 [5,] 1529.0 1354.0 1281 1023.0 1116.0 1281 1157 1126.0 1271 1395.0 1261 1622 $n [1] 10 10 10 10 10 10 10 10 10 10 10 10 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] 775.238 676.7161 687.7157 558.1711 847.5965 981.6156 744.1563 [2,] 1435.762 1276.2839 1286.2843 1032.8289 1115.4035 1302.3844 1177.8437 [,8] [,9] [,10] [,11] [,12] [1,] 620.1639 677.201 780.2121 867.6639 977.2305 [2,] 1074.8361 1234.799 1368.7879 1322.3361 1616.7695 $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(434, 610, 1105.5, 1271, 1529, 424, 506, 976.5, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/wessaorg/rcomp/tmp/5cv6w1312546760.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] [,12] [1,] -207 -73 -258 93.0 62 -196 -134 10.0 0 -134 21 -93 [2,] -175 -52 -238 135.0 113 -166 -114 21.0 62 -51 103 -83 [3,] -119 -21 -191 185.5 145 -155 -98 77.5 93 31 145 -82 [4,] -51 10 -135 289.0 165 -124 -83 145.0 124 73 320 0 [5,] -10 21 10 383.0 207 -124 -83 175.0 165 103 361 31 $n [1] 10 10 10 10 10 10 10 10 10 10 10 9 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] -180.95534 -51.977672 -242.4629 108.5555 119.0187 -175.9849 -113.48884 [2,] -57.04466 9.977672 -139.5371 262.4445 170.9813 -134.0151 -82.51116 [,8] [,9] [,10] [,11] [,12] [1,] 15.54466 62.02233 -30.95534 36.57815 -125.71333 [2,] 139.45534 123.97767 92.95534 253.42185 -38.28667 $out [1] -10 -258 0 -31 $group [1] 5 6 7 7 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" "11" "12" Warning message: In bxp(list(stats = c(-207, -175, -119, -51, -10, -73, -52, -21, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/wessaorg/rcomp/tmp/6sp3f1312546760.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] [,10] [,11] [1,] 362 362.0 382.0 568 785.0 806.0 827.0 899.0 940.0 1023.0 NA [2,] 377 429.0 527.0 775 951.0 951.0 966.0 1059.0 1059.5 1141.5 NA [3,] 434 491.0 615.0 858 1012.5 1059.0 1012.5 1131.5 1209.0 1276.0 NA [4,] 465 578.5 754.5 930 1152.0 1136.5 1111.0 1240.0 1286.5 1374.5 NA [5,] 465 723.0 878.0 1085 1302.0 1292.0 1312.0 1498.0 1622.0 1581.0 NA $n [1] 12 12 12 12 12 12 12 12 12 12 0 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 393.8626 422.812 511.2357 787.3035 920.8226 974.3922 946.3645 1048.945 [2,] 474.1374 559.188 718.7643 928.6965 1104.1774 1143.6078 1078.6355 1214.055 [,9] [,10] [,11] [1,] 1105.464 1169.727 NA [2,] 1312.536 1382.273 NA $out [1] 630 620 $group [1] 1 1 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" NA Warning message: In bxp(list(stats = c(362, 377, 434, 465, 465, 362, 429, 491, 578.5, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/wessaorg/rcomp/tmp/76xyr1312546760.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,] 702.60 795.50 670.5000 [2,] 871.10 958.50 838.3125 [3,] 902.10 984.25 891.2500 [4,] 986.35 1100.25 979.8750 [5,] 1155.20 1297.00 1183.1250 $n [1] 12 12 12 $conf [,1] [,2] [,3] [1,] 849.5337 919.5969 826.6824 [2,] 954.6663 1048.9031 955.8176 $out numeric(0) $group numeric(0) $names [1] "mean" "median" "midrange" Warning message: In bxp(list(stats = c(702.6, 871.1, 902.1, 986.35, 1155.2, 795.5, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > > try(system("convert tmp/1lgu71312546760.ps tmp/1lgu71312546760.png",intern=TRUE)) character(0) > try(system("convert tmp/2b6e01312546760.ps tmp/2b6e01312546760.png",intern=TRUE)) character(0) > try(system("convert tmp/3cib21312546760.ps tmp/3cib21312546760.png",intern=TRUE)) character(0) > try(system("convert tmp/4o3ik1312546760.ps tmp/4o3ik1312546760.png",intern=TRUE)) character(0) > try(system("convert tmp/5cv6w1312546760.ps tmp/5cv6w1312546760.png",intern=TRUE)) character(0) > try(system("convert tmp/6sp3f1312546760.ps tmp/6sp3f1312546760.png",intern=TRUE)) character(0) > try(system("convert tmp/76xyr1312546760.ps tmp/76xyr1312546760.png",intern=TRUE)) character(0) > > > proc.time() user system elapsed 1.616 0.346 2.009