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(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 = '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,] 760 800 890 890 860 820 740 800 800 NA [2,] 730 710 790 810 860 880 1010 1060 1000 NA [3,] 730 800 840 810 730 840 850 790 780 NA [4,] 680 780 830 840 850 910 980 930 1010 NA [5,] 730 760 740 830 860 860 880 920 950 NA [6,] 710 730 760 790 900 880 870 840 830 NA [7,] 800 770 630 610 610 620 660 690 670 NA [8,] 830 880 890 870 960 970 940 940 1000 NA [9,] 820 850 900 870 820 810 860 1010 960 NA [10,] 770 810 820 820 860 880 880 890 920 NA [11,] 800 770 810 800 810 870 1000 1000 1040 NA [12,] 840 810 820 840 820 800 840 820 860 NA > darr [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [,9] [,10] [1,] -30 -90 -100 -80 0 60 270 260 200 NA [2,] 0 90 50 0 -130 -40 -160 -270 -220 NA [3,] -50 -20 -10 30 120 70 130 140 230 NA [4,] 50 -20 -90 -10 10 -50 -100 -10 -60 NA [5,] -20 -30 20 -40 40 20 -10 -80 -120 NA [6,] 90 40 -130 -180 -290 -260 -210 -150 -160 NA [7,] 30 110 260 260 350 350 280 250 330 NA [8,] -10 -30 10 0 -140 -160 -80 70 -40 NA [9,] -50 -40 -80 -50 40 70 20 -120 -40 NA [10,] 30 -40 -10 -20 -50 -10 120 110 120 NA [11,] 40 40 10 40 10 -70 -160 -180 -180 NA [12,] -40 80 70 20 0 -60 -40 -20 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/1zmhq1312900155.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/2lxac1312900155.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/3y01j1312900155.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/4b76d1312900155.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,] 740 710 730 680 730 710 610 830 810 770 770 800 [2,] 800 790 780 830 760 760 620 880 820 820 800 820 [3,] 800 860 800 850 860 830 660 940 860 860 810 820 [4,] 860 1000 840 930 880 870 690 960 900 880 1000 840 [5,] 890 1060 850 1010 950 900 770 1000 1010 920 1040 860 $n [1] 9 9 9 9 9 9 9 9 9 9 9 9 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [,9] [,10] [1,] 768.4 749.4 768.4 797.3333 796.8 772.0667 623.1333 897.8667 817.8667 828.4 [2,] 831.6 970.6 831.6 902.6667 923.2 887.9333 696.8667 982.1333 902.1333 891.6 [,11] [,12] [1,] 704.6667 809.4667 [2,] 915.3333 830.5333 $out [1] 800 $group [1] 7 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" "11" "12" Warning message: In bxp(list(stats = c(740, 800, 800, 860, 890, 710, 790, 860, 1000, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/wessaorg/rcomp/tmp/5jhu91312900155.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,] -100 -270 -50 -100 -120 -290 250 -160 -120 -50 -180 -60 [2,] -80 -160 -10 -60 -40 -210 250 -80 -50 -20 -160 -40 [3,] 0 -40 70 -20 -20 -160 260 -30 -40 -10 10 -10 [4,] 200 0 130 -10 20 -130 330 0 20 110 40 45 [5,] 270 90 230 50 40 -130 350 70 70 120 40 80 $n [1] 9 9 9 9 9 9 9 9 9 9 9 8 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] -147.4667 -124.26667 -3.733333 -46.333333 -51.6 -202.1333 217.8667 [2,] 147.4667 44.26667 143.733333 6.333333 11.6 -117.8667 302.1333 [,8] [,9] [,10] [,11] [,12] [1,] -72.13333 -76.866667 -78.46667 -95.33333 -57.48222 [2,] 12.13333 -3.133333 58.46667 115.33333 37.48222 $out [1] 90 40 30 110 $group [1] 6 6 7 7 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" "11" "12" Warning message: In bxp(list(stats = c(-100, -80, 0, 200, 270, -270, -160, -40, 0, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/wessaorg/rcomp/tmp/6r9vt1312900155.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,] 680 710 740 790 810 800 740 690 670 NA [2,] 730 765 775 805 815 815 845 810 815 NA [3,] 765 790 820 825 855 865 875 905 935 NA [4,] 810 810 865 855 860 880 960 970 1000 NA [5,] 840 850 900 890 900 970 1010 1060 1040 NA $n [1] 12 12 12 12 12 12 12 12 12 0 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 728.5115 769.4752 778.9504 802.1947 834.4752 835.3531 822.5477 832.0229 [2,] 801.4885 810.5248 861.0496 847.8053 875.5248 894.6469 927.4523 977.9771 [,9] [,10] [1,] 850.6203 NA [2,] 1019.3797 NA $out [1] 880 630 610 730 610 960 620 660 $group [1] 2 3 4 5 5 5 6 7 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" NA Warning message: In bxp(list(stats = c(680, 730, 765, 810, 840, 710, 765, 790, 810, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/wessaorg/rcomp/tmp/7ft311312900155.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,] 796.6667 800 810.0 [2,] 815.0000 805 817.5 [3,] 843.3333 840 840.0 [4,] 875.0000 860 887.5 [5,] 920.0000 940 920.0 $n [1] 12 12 12 $conf [,1] [,2] [,3] [1,] 815.9669 814.9141 808.0725 [2,] 870.6997 865.0859 871.9275 $out [1] 673.3333 660.0000 655.0000 $group [1] 1 2 3 $names [1] "mean" "median" "midrange" Warning message: In bxp(list(stats = c(796.666666666667, 815, 843.333333333333, 875, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > > try(system("convert tmp/1zmhq1312900155.ps tmp/1zmhq1312900155.png",intern=TRUE)) character(0) > try(system("convert tmp/2lxac1312900155.ps tmp/2lxac1312900155.png",intern=TRUE)) character(0) > try(system("convert tmp/3y01j1312900155.ps tmp/3y01j1312900155.png",intern=TRUE)) character(0) > try(system("convert tmp/4b76d1312900155.ps tmp/4b76d1312900155.png",intern=TRUE)) character(0) > try(system("convert tmp/5jhu91312900155.ps tmp/5jhu91312900155.png",intern=TRUE)) character(0) > try(system("convert tmp/6r9vt1312900155.ps tmp/6r9vt1312900155.png",intern=TRUE)) character(0) > try(system("convert tmp/7ft311312900155.ps tmp/7ft311312900155.png",intern=TRUE)) character(0) > > > proc.time() user system elapsed 1.582 0.334 1.917