R version 2.8.0 (2008-10-20) 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. 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(1384.2,1368.9,-275.1,-408.9,-37.5,171.5,671.8,-18.5,231.6,747.5,1505.7,-83.6,1173.2,1452.1,777,-52.8,861.2,735.2,1073.6,966.9,1189.8,1093.5,1782.7,-70.4,1471.6,1273.8,900.8,-910.2,299.8,460.2,677.2,937.1,1265.4,1275.6,1582.6,-154.2,1667.6,1083.1,891.7,-26.5,423.4,662.8,711.4,993.3,1133.2,343.9,1415.8,-531.8,1193.6,1201.3,805.6,-164.8,327.3,223.7,675.8,949.7,704.4,265.6,1206,-558.2,1066.8,977.8,207.1,-980.7,-586.4,-24.3,-417.5,104.7,749.5,842.3,1176,-730.3,911.6,662.1,539.1,-236,286.9,497.4,912,519.4,260.1,945.2,412.7,-54.2,592.8,179.9,-548.6,-1685.8,-2041,-1048.7,-1708.4,-1550.7,-1650.2,-911.3) > 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] 94 > (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 8 8 8 8 8 8 8 8 8 7 7 > arr [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 1384.2 1173.2 1471.6 1667.6 1193.6 1066.8 911.6 592.8 [2,] 1368.9 1452.1 1273.8 1083.1 1201.3 977.8 662.1 179.9 [3,] -275.1 777.0 900.8 891.7 805.6 207.1 539.1 -548.6 [4,] -408.9 -52.8 -910.2 -26.5 -164.8 -980.7 -236.0 -1685.8 [5,] -37.5 861.2 299.8 423.4 327.3 -586.4 286.9 -2041.0 [6,] 171.5 735.2 460.2 662.8 223.7 -24.3 497.4 -1048.7 [7,] 671.8 1073.6 677.2 711.4 675.8 -417.5 912.0 -1708.4 [8,] -18.5 966.9 937.1 993.3 949.7 104.7 519.4 -1550.7 [9,] 231.6 1189.8 1265.4 1133.2 704.4 749.5 260.1 -1650.2 [10,] 747.5 1093.5 1275.6 343.9 265.6 842.3 945.2 -911.3 [11,] 1505.7 1782.7 1582.6 1415.8 1206.0 1176.0 412.7 NA [12,] -83.6 -70.4 -154.2 -531.8 -558.2 -730.3 -54.2 NA > darr [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] -15.3 278.9 -197.8 -584.5 7.7 -89.0 -249.5 -412.9 [2,] -1644.0 -675.1 -373.0 -191.4 -395.7 -770.7 -123.0 -728.5 [3,] -133.8 -829.8 -1811.0 -918.2 -970.4 -1187.8 -775.1 -1137.2 [4,] 371.4 914.0 1210.0 449.9 492.1 394.3 522.9 -355.2 [5,] 209.0 -126.0 160.4 239.4 -103.6 562.1 210.5 992.3 [6,] 500.3 338.4 217.0 48.6 452.1 -393.2 414.6 -659.7 [7,] -690.3 -106.7 259.9 281.9 273.9 522.2 -392.6 157.7 [8,] 250.1 222.9 328.3 139.9 -245.3 644.8 -259.3 -99.5 [9,] 515.9 -96.3 10.2 -789.3 -438.8 92.8 685.1 738.9 [10,] 758.2 689.2 307.0 1071.9 940.4 333.7 -532.5 NA [11,] -1589.3 -1853.1 -1736.8 -1947.6 -1764.2 -1906.3 -466.9 NA [12,] 1256.8 1542.0 1821.8 1725.4 1625.0 1641.9 647.0 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/1lwpr1229891761.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/24svh1229891761.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/3ixrs1229891761.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/4m8ix1229891761.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] [1,] 592.8 179.90 -548.60 -1685.80 -586.40 -24.30 -417.50 -18.50 231.60 [2,] 989.2 819.95 -34.00 -945.45 -311.95 73.60 127.15 43.10 245.85 [3,] 1183.4 1142.20 658.05 -322.45 293.35 341.95 676.50 728.25 726.95 [4,] 1427.9 1321.35 848.65 -108.80 375.35 580.10 811.70 958.30 1161.50 [5,] 1667.6 1452.10 900.80 -26.50 861.20 735.20 1073.60 993.30 1265.40 [,10] [,11] [,12] [1,] 265.60 1176.00 -730.3 [2,] 304.75 1191.00 -545.0 [3,] 794.90 1415.80 -154.2 [4,] 1019.35 1544.15 -77.0 [5,] 1275.60 1782.70 -54.2 $n [1] 8 8 8 8 8 8 8 8 8 8 7 7 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] 938.3359 862.1108 164.9890 -789.8147 -90.58565 59.01183 294.1005 [2,] 1428.4641 1422.2892 1151.1110 144.9147 677.28565 624.88817 1058.8995 [,8] [,9] [,10] [,11] [,12] [1,] 217.0061 215.4548 395.7142 1204.905 -433.6820 [2,] 1239.4939 1238.4452 1194.0858 1626.695 125.2820 $out [1] -2041.0 -1048.7 -1708.4 -1550.7 -1650.2 -911.3 412.7 $group [1] 5 6 7 8 9 10 11 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" "11" "12" Warning message: In bxp(list(stats = c(592.8, 989.2, 1183.4, 1427.9, 1667.6, 179.9, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/5u1w11229891761.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] [,9] [1,] -584.5 -770.7 -1187.80 371.40 -126.00 -659.70 -690.30 -259.3 -789.30 [2,] -331.2 -749.6 -1162.50 382.85 28.40 -172.30 -249.65 -172.4 -267.55 [3,] -143.4 -535.4 -944.30 471.00 209.75 277.70 208.80 181.4 51.50 [4,] -3.8 -282.2 -802.45 718.45 400.75 433.35 277.90 289.2 600.50 [5,] 278.9 -123.0 -775.10 1210.00 562.10 500.30 522.20 644.8 738.90 [,10] [,11] [,12] [1,] 307.00 -1947.60 1256.80 [2,] 320.35 -1879.70 1399.40 [3,] 689.20 -1764.20 1625.00 [4,] 849.30 -1663.05 1683.65 [5,] 1071.90 -1589.30 1821.80 $n [1] 8 8 8 8 8 8 8 8 8 7 7 7 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] -326.29034 -796.4964 -1145.4291 283.529 1.749944 -60.62479 -85.897 [2,] 39.49034 -274.3036 -743.1709 658.471 417.750056 616.02479 503.497 [,8] [,9] [,10] [,11] [,12] [1,] -76.45639 -433.4052 373.3196 -1893.58 1455.250 [2,] 439.25639 536.4052 1005.0804 -1634.82 1794.750 $out [1] -1644.0 -133.8 -1811.0 -355.2 992.3 -532.5 -466.9 647.0 $group [1] 2 3 3 4 5 10 11 12 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" "11" "12" Warning message: In bxp(list(stats = c(-584.5, -331.2, -143.4, -3.79999999999995, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/6a1oy1229891761.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] [,8] [1,] -408.90 735.20 -910.20 -531.80 -558.20 -980.70 -236.00 -2041.0 [2,] -60.55 756.10 380.00 383.65 244.65 -501.95 273.50 -1685.8 [3,] 201.55 1020.25 918.95 801.55 690.10 155.90 508.40 -1299.7 [4,] 1058.20 1181.50 1274.70 1108.15 1071.65 910.05 786.85 -548.6 [5,] 1505.70 1782.70 1582.60 1667.60 1206.00 1176.00 945.20 592.8 $n [1] 12 12 12 12 12 12 12 10 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] -308.7194 826.2222 510.8713 471.1007 312.8997 -488.1227 274.2576 [2,] 711.8194 1214.2778 1327.0287 1131.9993 1067.3003 799.9227 742.5424 [,8] [1,] -1867.8905 [2,] -731.5095 $out [1] -52.8 -70.4 $group [1] 2 2 $names [1] "1" "2" "3" "4" "5" "6" "7" NA Warning message: In bxp(list(stats = c(-408.9, -60.55, 201.55, 1058.2, 1505.7, 735.2, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/7xvt01229891761.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,] -558.21250 -322.450 -532.3125 [2,] 75.71875 317.650 209.4750 [3,] 387.46875 701.725 547.2313 [4,] 800.08125 968.550 899.1938 [5,] 1297.35714 1415.800 1367.5750 $n [1] 12 12 12 $conf [,1] [,2] [,3] [1,] 57.08215 404.8451 232.6459 [2,] 717.85535 998.6049 861.8166 $out numeric(0) $group numeric(0) $names [1] "mean" "median" "midrange" Warning message: In bxp(list(stats = c(-558.2125, 75.71875, 387.46875, 800.08125, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > > system("convert tmp/1lwpr1229891761.ps tmp/1lwpr1229891761.png") > system("convert tmp/24svh1229891761.ps tmp/24svh1229891761.png") > system("convert tmp/3ixrs1229891761.ps tmp/3ixrs1229891761.png") > system("convert tmp/4m8ix1229891761.ps tmp/4m8ix1229891761.png") > system("convert tmp/5u1w11229891761.ps tmp/5u1w11229891761.png") > system("convert tmp/6a1oy1229891761.ps tmp/6a1oy1229891761.png") > system("convert tmp/7xvt01229891761.ps tmp/7xvt01229891761.png") > > > proc.time() user system elapsed 1.176 0.928 1.448