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(740,730,740,820,820,850,870,930,890,790,840,880,730,730,770,880,820,900,940,1080,920,710,880,910,680,740,740,810,800,900,920,1030,910,720,930,900,680,770,770,810,810,910,820,980,830,760,930,910,640,780,690,820,800,910,850,980,830,820,1010,930,630,760,670,850,780,900,840,1050,810,860,1020,820,670,780,690,800,810,910,870,1010,810,960,990,780,700,810,760,810,840,900,920,1050,860,870,880,860,650,830,730,810,840,940,870,940,770,870,860,760) > 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,] 740 730 680 680 640 630 670 700 650 NA [2,] 730 730 740 770 780 760 780 810 830 NA [3,] 740 770 740 770 690 670 690 760 730 NA [4,] 820 880 810 810 820 850 800 810 810 NA [5,] 820 820 800 810 800 780 810 840 840 NA [6,] 850 900 900 910 910 900 910 900 940 NA [7,] 870 940 920 820 850 840 870 920 870 NA [8,] 930 1080 1030 980 980 1050 1010 1050 940 NA [9,] 890 920 910 830 830 810 810 860 770 NA [10,] 790 710 720 760 820 860 960 870 870 NA [11,] 840 880 930 930 1010 1020 990 880 860 NA [12,] 880 910 900 910 930 820 780 860 760 NA > darr [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [,9] [,10] [1,] -10 0 60 90 140 130 110 110 180 NA [2,] 10 40 0 0 -90 -90 -90 -50 -100 NA [3,] 80 110 70 40 130 180 110 50 80 NA [4,] 0 -60 -10 0 -20 -70 10 30 30 NA [5,] 30 80 100 100 110 120 100 60 100 NA [6,] 20 40 20 -90 -60 -60 -40 20 -70 NA [7,] 60 140 110 160 130 210 140 130 70 NA [8,] -40 -160 -120 -150 -150 -240 -200 -190 -170 NA [9,] -100 -210 -190 -70 -10 50 150 10 100 NA [10,] 50 170 210 170 190 160 30 10 -10 NA [11,] 40 30 -30 -20 -80 -200 -210 -20 -100 NA [12,] -150 -230 -220 -270 -300 -150 -80 -210 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/1atnr1312116134.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/2tm4j1312116134.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/30vux1312116134.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/4uz8g1312116134.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,] 630 730 670 800 780 900 820 930 770 710 840 760 [2,] 650 740 690 810 800 900 850 980 810 760 880 820 [3,] 680 770 740 810 810 900 870 1010 830 820 930 880 [4,] 700 780 760 820 820 910 920 1050 890 870 990 910 [5,] 740 830 770 820 840 910 940 1080 920 960 1020 930 $n [1] 9 9 9 9 9 9 9 9 9 9 9 9 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 653.6667 748.9333 703.1333 804.7333 799.4667 894.7333 833.1333 973.1333 [2,] 706.3333 791.0667 776.8667 815.2667 820.5333 905.2667 906.8667 1046.8667 [,9] [,10] [,11] [,12] [1,] 787.8667 762.0667 872.0667 832.6 [2,] 872.1333 877.9333 987.9333 927.4 $out [1] 880 850 850 940 $group [1] 4 4 6 6 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" "11" "12" Warning message: In bxp(list(stats = c(630, 650, 680, 700, 740, 730, 740, 770, 780, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/wessaorg/rcomp/tmp/5s1dy1312116134.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,] -10 -100 40 -60 60 -90 70 -240 -210 -10 -210 -300 [2,] 60 -90 70 -20 80 -60 110 -190 -100 30 -100 -250 [3,] 110 -50 80 0 100 -40 130 -160 -10 160 -30 -215 [4,] 130 0 110 10 100 20 140 -150 50 170 -20 -150 [5,] 180 40 130 30 120 40 160 -120 150 210 40 -80 $n [1] 9 9 9 9 9 9 9 9 9 9 9 8 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [,9] [1,] 73.13333 -97.4 58.93333 -15.8 89.46667 -82.133333 114.2 -181.0667 -89 [2,] 146.86667 -2.6 101.06667 15.8 110.53333 2.133333 145.8 -138.9333 69 [,10] [,11] [,12] [1,] 86.26667 -72.13333 -270.8614 [2,] 233.73333 12.13333 -159.1386 $out [1] 180 -70 30 60 210 -40 $group [1] 3 4 5 7 7 8 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" "11" "12" Warning message: In bxp(list(stats = c(-10, 60, 110, 130, 180, -100, -90, -50, 0, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/wessaorg/rcomp/tmp/6exbd1312116134.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,] 730 710 680 680 640 630 670 700 650 NA [2,] 765 750 740 770 790 770 780 810 765 NA [3,] 830 880 855 815 825 830 810 860 835 NA [4,] 875 915 915 910 920 880 935 890 870 NA [5,] 930 1080 1030 980 1010 1020 1010 920 940 NA $n [1] 12 12 12 12 12 12 12 12 12 0 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 779.8283 804.7424 775.1813 751.1451 765.7061 779.8283 739.3035 823.5115 [2,] 880.1717 955.2576 934.8187 878.8549 884.2939 880.1717 880.6965 896.4885 [,9] [,10] [1,] 787.1088 NA [2,] 882.8912 NA $out [1] 1050 1050 $group [1] 6 8 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" NA Warning message: In bxp(list(stats = c(730, 765, 830, 875, 930, 710, 750, 880, 915, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/wessaorg/rcomp/tmp/7hzwc1312116134.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,] 680.0000 680 675.0 [2,] 791.6667 790 785.0 [3,] 835.5556 825 832.5 [4,] 890.0000 890 895.0 [5,] 1005.5556 1010 1015.0 $n [1] 12 12 12 $conf [,1] [,2] [,3] [1,] 790.7051 779.3893 782.3283 [2,] 880.4060 870.6107 882.6717 $out numeric(0) $group numeric(0) $names [1] "mean" "median" "midrange" Warning message: In bxp(list(stats = c(680, 791.666666666667, 835.555555555556, 890, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > > try(system("convert tmp/1atnr1312116134.ps tmp/1atnr1312116134.png",intern=TRUE)) character(0) > try(system("convert tmp/2tm4j1312116134.ps tmp/2tm4j1312116134.png",intern=TRUE)) character(0) > try(system("convert tmp/30vux1312116134.ps tmp/30vux1312116134.png",intern=TRUE)) character(0) > try(system("convert tmp/4uz8g1312116134.ps tmp/4uz8g1312116134.png",intern=TRUE)) character(0) > try(system("convert tmp/5s1dy1312116134.ps tmp/5s1dy1312116134.png",intern=TRUE)) character(0) > try(system("convert tmp/6exbd1312116134.ps tmp/6exbd1312116134.png",intern=TRUE)) character(0) > try(system("convert tmp/7hzwc1312116134.ps tmp/7hzwc1312116134.png",intern=TRUE)) character(0) > > > proc.time() user system elapsed 1.648 0.379 2.031