R version 2.9.0 (2009-04-17) Copyright (C) 2009 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(-319.559557390785,27.9743410117227,-1008.46959533542,219.863126270784,-234.491311787668,-153.082960538935,933.953124451168,411.042384090291,-961.89720235503,-744.764396776115,-784.92892986467,290.509724746436,785.730745077288,-301.538747036842,-780.030839489239,1454.61282130082,1455.43851042382,411.425730256672,-489.069183914927,-338.63085750037,-193.728983946927,-2756.28930305837,-138.899095490555,-1123.79015926020,1375.20173898251,-1535.1755035624,-1580.22317024033,-64.5953189787947,-1328.41699726220,-3198.05965476559,1102.44538925562,1119.07222818829,-2973.61872170023,2265.07317206589,443.326906414096,2358.41463625693,-459.228166651762,-366.686092276445,-788.24933923038,221.857682470493,-1789.68439905851,3575.1307429011,639.708861362199,-209.773692601329,-713.751966817262,979.24918300219,2326.97019964138,2055.60615831213) > 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] 48 > (np <- floor(n / par1)) [1] 4 > 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] 4 4 4 4 4 4 4 4 4 4 4 4 > arr [,1] [,2] [,3] [,4] [,5] [1,] -319.55956 785.7307 1375.20174 -459.2282 NA [2,] 27.97434 -301.5387 -1535.17550 -366.6861 NA [3,] -1008.46960 -780.0308 -1580.22317 -788.2493 NA [4,] 219.86313 1454.6128 -64.59532 221.8577 NA [5,] -234.49131 1455.4385 -1328.41700 -1789.6844 NA [6,] -153.08296 411.4257 -3198.05965 3575.1307 NA [7,] 933.95312 -489.0692 1102.44539 639.7089 NA [8,] 411.04238 -338.6309 1119.07223 -209.7737 NA [9,] -961.89720 -193.7290 -2973.61872 -713.7520 NA [10,] -744.76440 -2756.2893 2265.07317 979.2492 NA [11,] -784.92893 -138.8991 443.32691 2326.9702 NA [12,] 290.50972 -1123.7902 2358.41464 2055.6062 NA > darr [,1] [,2] [,3] [,4] [,5] [1,] 347.53390 -1087.2694921 -2910.37724 92.54207 NA [2,] -1036.44394 -478.4920925 -45.04767 -421.56325 NA [3,] 1228.33272 2234.6436608 1515.62785 1010.10702 NA [4,] -454.35444 0.8256891 -1263.82168 -2011.54208 NA [5,] 81.40835 -1044.0127802 -1869.64266 5364.81514 NA [6,] 1087.03608 -900.4949142 4300.50504 -2935.42188 NA [7,] -522.91074 150.4383264 16.62684 -849.48255 NA [8,] -1372.93959 144.9018736 -4092.69095 -503.97827 NA [9,] 217.13281 -2562.5603191 5238.69189 1693.00115 NA [10,] -40.16453 2617.3902076 -1821.74627 1347.72102 NA [11,] 1075.43865 -984.8910638 1915.08773 -271.36404 NA [12,] 495.22102 2498.9918982 -2817.64280 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/15bd01259694082.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/2te4j1259694082.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/331x41259694082.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/4im951259694082.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] [1,] -459.2282 -1535.17550 -1580.2232 -64.59532 -1789.6844 -3198.0597 [2,] -389.3939 -950.93080 -1294.3464 77.63390 -1559.0507 -1675.5713 [3,] 233.0856 -334.11242 -898.3595 220.86040 -781.4542 129.1714 [4,] 1080.4662 -136.78220 -784.1401 838.23525 610.4736 1993.2782 [5,] 1375.2017 27.97434 -780.0308 1454.61282 1455.4385 3575.1307 [,7] [,8] [,9] [,10] [,11] [,12] [1,] -489.06918 -338.6309 -2973.6187 -2756.2893 -784.9289 -1123.7902 [2,] 75.31984 -274.2023 -1967.7580 -1750.5268 -461.9140 -416.6402 [3,] 786.83099 100.6343 -837.8246 117.2424 152.2139 1173.0579 [4,] 1018.19926 765.0573 -453.7405 1622.1612 1385.1486 2207.0104 [5,] 1102.44539 1119.0722 -193.7290 2265.0732 2326.9702 2358.4146 $n [1] 4 4 4 4 4 4 4 4 4 4 4 4 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] -928.1039 -977.2898 -1301.4224 -380.0147 -2495.378 -2769.220 41.95625 [2,] 1394.2751 309.0650 -495.2965 821.7355 932.470 3027.563 1531.70573 [,8] [,9] [,10] [,11] [,12] [1,] -720.3807 -2033.8984 -2547.181 -1306.966 -899.626 [2,] 921.6494 358.2492 2781.666 1611.393 3245.742 $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(-459.228166651762, -389.393862021274, 233.085593843252, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/5xvql1259694082.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] [1,] -2910.3772 -1036.44394 1010.107 -2011.5420815 -1869.6427 -2935.42188 [2,] -1998.8234 -757.46801 1119.220 -1637.6818799 -1456.8277 -1917.95840 [3,] -497.3637 -450.02767 1371.980 -859.0880582 -481.3022 93.27059 [4,] 220.0380 -233.30546 1875.136 -226.7643745 2723.1117 2693.77056 [5,] 347.5339 -45.04767 2234.644 0.8256891 5364.8151 4300.50504 [,7] [,8] [,9] [,10] [,11] [,12] [1,] -849.48255 -4092.6909 -2562.560 -1821.7463 -984.8911 -2817.643 [2,] -686.19665 -2732.8153 -1172.714 -930.9554 -628.1276 -1161.211 [3,] -253.14195 -938.4589 955.067 653.7782 402.0373 495.221 [4,] 83.53258 -179.5382 3465.847 1982.5556 1495.2632 1497.106 [5,] 150.43833 144.9019 5238.692 2617.3902 1915.0877 2498.992 $n [1] 4 4 4 4 4 4 4 4 4 4 4 3 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] -2250.264 -864.11609 774.8067 -1973.7129 -3783.454 -3549.995 -861.2280 [2,] 1255.537 -35.93925 1969.1538 255.5368 2820.850 3736.536 354.9441 [,8] [,9] [,10] [,11] [,12] [1,] -2955.548 -2709.396 -1647.895 -1275.441 -1929.732 [2,] 1078.630 4619.530 2955.452 2079.516 2920.174 $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(-2910.37724254491, -1998.82336732952, -497.363708869407, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/6qgux1259694082.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] [1,] -1008.4696 -1123.7902 -3198.0597 -1789.684399 NA [2,] -764.8467 -634.5500 -1557.6993 -586.490067 NA [3,] -193.7871 -247.6339 189.3658 6.041995 NA [4,] 255.1864 598.5782 1247.1370 1517.427671 NA [5,] 933.9531 1455.4385 2358.4146 3575.130743 NA $n [1] 12 12 12 12 0 $conf [,1] [,2] [,3] [,4] [,5] [1,] -659.0311 -810.0719 -1089.939 -953.569 NA [2,] 271.4568 314.8042 1468.670 965.653 NA $out [1] -2756.289 $group [1] 2 $names [1] "1" "2" "3" "4" NA Warning message: In bxp(list(stats = c(-1008.46959533542, -764.846663320393, -193.787136163302, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/7t42g1259694082.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,] -1210.7492 -898.3595 -1024.2869 [2,] -509.0725 -557.7833 -533.4279 [3,] 202.1405 123.2069 158.5217 [4,] 459.7759 226.9730 323.1565 [5,] 895.1851 1173.0579 1034.1215 $n [1] 12 12 12 $conf [,1] [,2] [,3] [1,] -239.7578 -234.7257 -232.1722 [2,] 644.0388 481.1395 549.2156 $out numeric(0) $group numeric(0) $names [1] "mean" "median" "midrange" Warning message: In bxp(list(stats = c(-1210.74921870486, -509.072524943565, 202.140490003766, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > > system("convert tmp/15bd01259694082.ps tmp/15bd01259694082.png") > system("convert tmp/2te4j1259694082.ps tmp/2te4j1259694082.png") > system("convert tmp/331x41259694082.ps tmp/331x41259694082.png") > system("convert tmp/4im951259694082.ps tmp/4im951259694082.png") > system("convert tmp/5xvql1259694082.ps tmp/5xvql1259694082.png") > system("convert tmp/6qgux1259694082.ps tmp/6qgux1259694082.png") > system("convert tmp/7t42g1259694082.ps tmp/7t42g1259694082.png") > > > proc.time() user system elapsed 1.213 0.960 5.343