R version 2.12.0 (2010-10-15) 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(860,950,780,840,840,900,860,810,870,930,790,930,820,930,730,860,800,890,850,890,850,1040,740,940,790,920,770,780,770,890,890,860,830,1020,740,940,780,860,820,760,780,900,820,980,830,930,770,960,750,850,850,820,730,960,760,940,880,890,830,850,850,860,800,840,760,910,650,990,780,910,820,780,890,810,830,890,760,860,670,940,740,920,800,800,920,810,790,850,780,900,710,960,760,920,740,800,870,740,710,900,740,880,700,1040,880,900,820,740) > 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] 108 > (np <- floor(n / par1)) [1] 9 > 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] 9 9 9 9 9 9 9 9 9 9 9 9 > arr [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [,9] [,10] [1,] 860 820 790 780 750 850 890 920 870 NA [2,] 950 930 920 860 850 860 810 810 740 NA [3,] 780 730 770 820 850 800 830 790 710 NA [4,] 840 860 780 760 820 840 890 850 900 NA [5,] 840 800 770 780 730 760 760 780 740 NA [6,] 900 890 890 900 960 910 860 900 880 NA [7,] 860 850 890 820 760 650 670 710 700 NA [8,] 810 890 860 980 940 990 940 960 1040 NA [9,] 870 850 830 830 880 780 740 760 880 NA [10,] 930 1040 1020 930 890 910 920 920 900 NA [11,] 790 740 740 770 830 820 800 740 820 NA [12,] 930 940 940 960 850 780 800 800 740 NA > darr [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [,9] [,10] [1,] 90 110 130 80 100 10 -80 -110 -130 NA [2,] -170 -200 -150 -40 0 -60 20 -20 -30 NA [3,] 60 130 10 -60 -30 40 60 60 190 NA [4,] 0 -60 -10 20 -90 -80 -130 -70 -160 NA [5,] 60 90 120 120 230 150 100 120 140 NA [6,] -40 -40 0 -80 -200 -260 -190 -190 -180 NA [7,] -50 40 -30 160 180 340 270 250 340 NA [8,] 60 -40 -30 -150 -60 -210 -200 -200 -160 NA [9,] 60 190 190 100 10 130 180 160 20 NA [10,] -140 -300 -280 -160 -60 -90 -120 -180 -80 NA [11,] 140 200 200 190 20 -40 0 60 -80 NA [12,] -110 -150 -160 -210 0 110 120 70 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/rcomp/tmp/14xhm1313424417.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/203gn1313424417.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/38jfi1313424417.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/4tlib1313424417.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,] 750 740 710 760 730 880 650 810 740 890 740 740 [2,] 790 810 770 820 760 890 700 890 780 910 740 800 [3,] 850 860 790 840 770 900 760 940 830 920 790 850 [4,] 870 920 820 860 780 900 850 980 870 930 820 940 [5,] 920 950 850 900 800 910 890 1040 880 930 830 960 $n [1] 9 9 9 9 9 9 9 9 9 9 9 9 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [,9] [1,] 807.8667 802.0667 763.6667 818.9333 759.4667 894.7333 681 892.6 782.6 [2,] 892.1333 917.9333 816.3333 861.0667 780.5333 905.2667 839 987.4 877.4 [,10] [,11] [,12] [1,] 909.4667 747.8667 776.2667 [2,] 930.5333 832.1333 923.7333 $out [1] 840 960 860 1040 1020 $group [1] 5 6 6 10 10 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" "11" "12" Warning message: In bxp(list(stats = c(750, 790, 850, 870, 920, 740, 810, 860, 920, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/rcomp/tmp/54kfb1313424417.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,] -130 -200 -60 -160 60 -260 -50 -210 10 -300 -80 -210 [2,] -80 -150 10 -90 100 -190 40 -200 60 -180 0 -155 [3,] 80 -40 60 -70 120 -180 180 -150 130 -140 60 -55 [4,] 100 -20 60 -10 140 -40 270 -40 180 -90 190 90 [5,] 130 20 130 20 150 0 340 60 190 -60 200 120 $n [1] 9 9 9 9 9 9 9 9 9 9 9 8 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] -14.8 -108.46667 33.66667 -112.13333 98.93333 -259 58.86667 -234.26667 [2,] 174.8 28.46667 86.33333 -27.86667 141.06667 -101 301.13333 -65.73333 [,9] [,10] [,11] [,12] [1,] 66.8 -187.4 -40.06667 -191.86052 [2,] 193.2 -92.6 160.06667 81.86052 $out [1] 190 230 $group [1] 3 5 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" "11" "12" Warning message: In bxp(list(stats = c(-130, -80, 80, 100, 130, -200, -150, -40, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/rcomp/tmp/6ic1b1313424417.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] [1,] 780 730 740 760 730 650 670 710 700 NA [2,] 825 810 775 780 790 780 780 770 740 NA [3,] 860 855 845 825 850 830 820 805 845 NA [4,] 915 910 905 915 885 885 890 910 890 NA [5,] 950 1040 1020 980 960 990 940 960 1040 NA $n [1] 12 12 12 12 12 12 12 12 12 0 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 818.9504 809.3893 785.7061 763.4256 806.6699 782.1088 769.8283 741.145 [2,] 901.0496 900.6107 904.2939 886.5744 893.3301 877.8912 870.1717 868.855 [,9] [,10] [1,] 776.584 NA [2,] 913.416 NA $out numeric(0) $group numeric(0) $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" NA Warning message: In bxp(list(stats = c(780, 825, 860, 915, 950, 730, 810, 855, 910, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/rcomp/tmp/7ivb51313424417.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,] 767.7778 760 770.0 [2,] 785.0000 790 787.5 [3,] 837.2222 845 835.0 [4,] 879.4444 880 882.5 [5,] 940.0000 940 935.0 $n [1] 12 12 12 $conf [,1] [,2] [,3] [1,] 794.1455 803.9504 791.6699 [2,] 880.2990 886.0496 878.3301 $out numeric(0) $group numeric(0) $names [1] "mean" "median" "midrange" Warning message: In bxp(list(stats = c(767.777777777778, 785, 837.222222222222, 879.444444444444, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > > try(system("convert tmp/14xhm1313424417.ps tmp/14xhm1313424417.png",intern=TRUE)) character(0) > try(system("convert tmp/203gn1313424417.ps tmp/203gn1313424417.png",intern=TRUE)) character(0) > try(system("convert tmp/38jfi1313424417.ps tmp/38jfi1313424417.png",intern=TRUE)) character(0) > try(system("convert tmp/4tlib1313424417.ps tmp/4tlib1313424417.png",intern=TRUE)) character(0) > try(system("convert tmp/54kfb1313424417.ps tmp/54kfb1313424417.png",intern=TRUE)) character(0) > try(system("convert tmp/6ic1b1313424417.ps tmp/6ic1b1313424417.png",intern=TRUE)) character(0) > try(system("convert tmp/7ivb51313424417.ps tmp/7ivb51313424417.png",intern=TRUE)) character(0) > > > proc.time() user system elapsed 1.750 0.160 1.954