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(760,730,730,680,730,710,800,830,820,770,800,840,800,710,800,780,760,730,770,880,850,810,770,810,890,790,840,830,740,760,630,890,900,820,810,820,890,810,810,840,830,790,610,870,870,820,800,840,860,860,730,850,860,900,610,960,820,860,810,820,820,880,840,910,860,880,620,970,810,880,870,800,740,1010,850,980,880,870,660,940,860,880,1000,840,800,1060,790,930,920,840,690,940,1010,890,1000,820,800,1000,780,1010,950,830,670,1000,960,920,1040,860) > par1 = '10' > #'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] 108 > (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] 11 11 11 11 11 11 11 11 10 10 > arr [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [,9] [,10] [,11] [1,] 760 800 850 630 830 730 820 870 860 690 950 [2,] 730 840 810 890 790 850 880 800 880 940 830 [3,] 730 800 770 900 610 860 840 740 1000 1010 670 [4,] 680 710 810 820 870 900 910 1010 840 890 1000 [5,] 730 800 890 810 870 610 860 850 800 1000 960 [6,] 710 780 790 820 820 960 880 980 1060 820 920 [7,] 800 760 840 890 800 820 620 880 790 800 1040 [8,] 830 730 830 810 840 860 970 870 930 1000 860 [9,] 820 770 740 810 860 810 810 660 920 780 NA [10,] 770 880 760 840 860 820 880 940 840 1010 NA > darr [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [,9] [,10] [,11] [1,] -30 40 -40 260 -40 120 60 -70 20 250 -120 [2,] 0 -40 -40 10 -180 10 -40 -60 120 70 -160 [3,] -50 -90 40 -80 260 40 70 270 -160 -120 330 [4,] 50 90 80 -10 0 -290 -50 -160 -40 110 -40 [5,] -20 -20 -100 10 -50 350 20 130 260 -180 -40 [6,] 90 -20 50 70 -20 -140 -260 -100 -270 -20 120 [7,] 30 -30 -10 -80 40 40 350 -10 140 200 -180 [8,] -10 40 -90 0 20 -50 -160 -210 -10 -220 NA [9,] -50 110 20 30 0 10 70 280 -80 230 NA [10,] 30 -30 -130 -10 -130 0 -10 -80 -150 -60 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/1by6u1313669578.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/2e2cx1313669578.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/3f3lo1313669578.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/40fkf1313669578.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] [1,] 630 730 610 680 730 710 760 730 740 760 [2,] 745 805 735 815 800 805 795 830 770 820 [3,] 820 840 800 870 850 820 800 860 810 850 [4,] 855 880 880 905 880 940 860 900 820 880 [5,] 950 940 1010 1010 1000 1060 890 1000 860 940 $n [1] 11 11 11 11 11 11 11 11 10 10 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 767.5973 804.2709 730.9238 827.1251 811.889 755.6876 769.0348 826.6528 [2,] 872.4027 875.7291 869.0762 912.8749 888.111 884.3124 830.9652 893.3472 [,9] [,10] [1,] 785.018 820.0216 [2,] 834.982 879.9784 $out [1] 610 620 1040 660 920 1010 $group [1] 5 7 7 9 9 10 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" Warning message: In bxp(list(stats = c(630, 745, 820, 855, 950, 730, 805, 840, 880, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/rcomp/tmp/5qwqa1313669578.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] [1,] -120 -60 -160 -160 -180 -270 -180 -220 -80 -150 [2,] -40 -50 -85 -45 -45 -120 -20 -160 0 -130 [3,] 20 -40 40 -10 -20 -20 30 -30 25 -45 [4,] 90 10 165 65 75 60 90 0 110 -10 [5,] 260 70 330 110 130 120 200 40 230 30 $n [1] 11 11 11 11 11 11 11 10 10 10 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] -41.93043 -68.58328 -79.09698 -62.40267 -77.16655 -105.74983 -22.40267 [2,] 81.93043 -11.41672 159.09698 42.40267 37.16655 65.74983 82.40267 [,8] [,9] [,10] [1,] -109.94238 -29.96039 -104.95678 [2,] 49.94238 79.96039 14.95678 $out [1] -180 120 -160 -290 350 260 350 280 $group [1] 2 2 2 4 5 5 7 9 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" Warning message: In bxp(list(stats = c(-120, -40, 20, 90, 260, -60, -50, -40, 10, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/rcomp/tmp/6pcww1313669578.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,] 680 710 740 810 790 810 810 660 790 690 670 [2,] 730 760 770 810 800 810 820 800 840 800 845 [3,] 745 790 810 820 835 835 870 870 870 915 935 [4,] 800 800 840 890 860 860 880 940 930 1000 980 [5,] 830 840 890 900 870 900 970 1010 1060 1010 1040 $n [1] 10 10 10 10 10 10 10 10 10 10 8 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 710.0252 770.0144 775.0252 780.0288 805.0216 810.018 840.0216 800.0504 [2,] 779.9748 809.9856 844.9748 859.9712 864.9784 859.982 899.9784 939.9496 [,9] [,10] [,11] [1,] 825.0324 815.072 859.587 [2,] 914.9676 1014.928 1010.413 $out [1] 880 630 610 730 610 960 620 $group [1] 2 4 5 6 6 6 7 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" NA Warning message: In bxp(list(stats = c(680, 730, 745, 800, 830, 710, 760, 790, 800, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/rcomp/tmp/7urfb1313669578.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,] 798.0000 800 795.00 [2,] 811.8182 810 807.50 [3,] 837.2727 830 841.25 [4,] 860.0000 850 860.00 [5,] 867.2727 870 872.50 $n [1] 10 10 10 $conf [,1] [,2] [,3] [1,] 813.1992 810.0144 815.0189 [2,] 861.3463 849.9856 867.4811 $out numeric(0) $group numeric(0) $names [1] "mean" "median" "midrange" Warning message: In bxp(list(stats = c(798, 811.818181818182, 837.272727272727, 860, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > > try(system("convert tmp/1by6u1313669578.ps tmp/1by6u1313669578.png",intern=TRUE)) character(0) > try(system("convert tmp/2e2cx1313669578.ps tmp/2e2cx1313669578.png",intern=TRUE)) character(0) > try(system("convert tmp/3f3lo1313669578.ps tmp/3f3lo1313669578.png",intern=TRUE)) character(0) > try(system("convert tmp/40fkf1313669578.ps tmp/40fkf1313669578.png",intern=TRUE)) character(0) > try(system("convert tmp/5qwqa1313669578.ps tmp/5qwqa1313669578.png",intern=TRUE)) character(0) > try(system("convert tmp/6pcww1313669578.ps tmp/6pcww1313669578.png",intern=TRUE)) character(0) > try(system("convert tmp/7urfb1313669578.ps tmp/7urfb1313669578.png",intern=TRUE)) character(0) > > > proc.time() user system elapsed 1.844 0.368 2.204