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(600,700,720,630,660,740,700,670,720,630,700,770,570,640,720,630,700,700,670,760,870,670,810,810,610,600,730,630,750,770,660,790,890,680,800,860,670,610,690,680,740,760,670,750,890,730,750,940,740,640,640,750,770,780,640,730,970,780,720,1050,790,610,530,750,730,870,670,750,1090,830,740,1010,780,640,590,770,650,880,700,790,1140,860,630,1060,840,720,570,790,570,800,790,780,1120,850,600,1050,810,750,550,740,500,750,820,810,1090,820,630,1080) > 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,] 600 570 610 670 740 790 780 840 810 NA [2,] 700 640 600 610 640 610 640 720 750 NA [3,] 720 720 730 690 640 530 590 570 550 NA [4,] 630 630 630 680 750 750 770 790 740 NA [5,] 660 700 750 740 770 730 650 570 500 NA [6,] 740 700 770 760 780 870 880 800 750 NA [7,] 700 670 660 670 640 670 700 790 820 NA [8,] 670 760 790 750 730 750 790 780 810 NA [9,] 720 870 890 890 970 1090 1140 1120 1090 NA [10,] 630 670 680 730 780 830 860 850 820 NA [11,] 700 810 800 750 720 740 630 600 630 NA [12,] 770 810 860 940 1050 1010 1060 1050 1080 NA > darr [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [,9] [,10] [1,] 100 70 -10 -60 -100 -180 -140 -120 -60 NA [2,] 20 80 130 80 0 -80 -50 -150 -200 NA [3,] -90 -90 -100 -10 110 220 180 220 190 NA [4,] 30 70 120 60 20 -20 -120 -220 -240 NA [5,] 80 0 20 20 10 140 230 230 250 NA [6,] -40 -30 -110 -90 -140 -200 -180 -10 70 NA [7,] -30 90 130 80 90 80 90 -10 -10 NA [8,] 50 110 100 140 240 340 350 340 280 NA [9,] -90 -200 -210 -160 -190 -260 -280 -270 -270 NA [10,] 70 140 120 20 -60 -90 -230 -250 -190 NA [11,] 70 0 60 190 330 270 430 450 450 NA [12,] -200 -200 -190 -200 -260 -230 -220 -240 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/1sg6f1313920735.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/289vr1313920735.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/3utej1313920735.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/4q23r1313920735.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,] 570 600 530 630 570 700 640 730 720 630 600 770 [2,] 610 610 570 630 650 750 670 750 890 680 630 860 [3,] 740 640 640 740 700 770 670 760 970 780 720 1010 [4,] 790 700 720 750 740 800 700 790 1090 830 750 1050 [5,] 840 750 730 790 770 870 700 810 1140 860 810 1080 $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] [,11] [1,] 645.2 592.6 561 676.8 652.6 743.6667 654.2 738.9333 864.6667 701 656.8 [2,] 834.8 687.4 719 803.2 747.4 796.3333 685.8 781.0667 1075.3333 859 783.2 [,12] [1,] 909.9333 [2,] 1110.0667 $out [1] 500 880 790 820 670 $group [1] 5 6 7 7 8 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" "11" "12" Warning message: In bxp(list(stats = c(570, 610, 740, 790, 840, 600, 610, 640, 700, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/wessaorg/rcomp/tmp/5a7l01313920735.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,] -180 -200 -100 -240 0 -200 -30 50 -280 -250 0 -260 [2,] -120 -80 -90 -120 20 -140 -10 110 -270 -190 70 -235 [3,] -60 0 110 20 80 -90 80 240 -210 -60 270 -210 [4,] -10 80 190 60 230 -30 90 340 -190 70 430 -200 [5,] 100 130 220 120 250 70 130 350 -90 140 450 -190 $n [1] 9 9 9 9 9 9 9 9 9 9 9 8 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] -117.933333 -84.26667 -37.46667 -74.8 -30.6 -147.93333 27.33333 118.8667 [2,] -2.066667 84.26667 257.46667 114.8 190.6 -32.06667 132.66667 361.1333 [,9] [,10] [,11] [,12] [1,] -252.1333 -196.93333 80.4 -229.5515 [2,] -167.8667 76.93333 459.6 -190.4485 $out numeric(0) $group numeric(0) $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" "11" "12" Warning message: In bxp(list(stats = c(-180, -120, -60, -10, 100, -200, -80, 0, 80, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/wessaorg/rcomp/tmp/671791313920735.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,] 600 570 600 610 640 530 590 570 500 NA [2,] 645 655 645 675 680 700 645 660 685 NA [3,] 700 700 740 735 745 750 775 790 780 NA [4,] 720 785 795 755 780 850 870 845 820 NA [5,] 770 870 890 760 780 1010 1140 1120 820 NA $n [1] 12 12 12 12 12 12 12 12 12 0 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 665.792 640.7061 671.584 698.5115 699.3893 681.584 672.376 705.6203 [2,] 734.208 759.2939 808.416 771.4885 790.6107 818.416 877.624 874.3797 [,9] [,10] [1,] 718.4256 NA [2,] 841.5744 NA $out [1] 890 940 970 1050 1090 1090 1080 $group [1] 4 4 5 5 6 9 9 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" NA Warning message: In bxp(list(stats = c(600, 645, 700, 720, 770, 570, 655, 700, 785, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/wessaorg/rcomp/tmp/7dy111313920735.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,] 637.7778 640 645.0 [2,] 688.3333 685 687.5 [3,] 710.5556 740 697.5 [4,] 772.2222 775 772.5 [5,] 783.3333 780 775.0 $n [1] 12 12 12 $conf [,1] [,2] [,3] [1,] 672.2933 698.9504 658.7309 [2,] 748.8178 781.0496 736.2691 $out [1] 975.5556 958.8889 970.0000 1010.0000 990.0000 955.0000 $group [1] 1 1 2 2 3 3 $names [1] "mean" "median" "midrange" Warning message: In bxp(list(stats = c(637.777777777778, 688.333333333333, 710.555555555556, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > > try(system("convert tmp/1sg6f1313920735.ps tmp/1sg6f1313920735.png",intern=TRUE)) character(0) > try(system("convert tmp/289vr1313920735.ps tmp/289vr1313920735.png",intern=TRUE)) character(0) > try(system("convert tmp/3utej1313920735.ps tmp/3utej1313920735.png",intern=TRUE)) character(0) > try(system("convert tmp/4q23r1313920735.ps tmp/4q23r1313920735.png",intern=TRUE)) character(0) > try(system("convert tmp/5a7l01313920735.ps tmp/5a7l01313920735.png",intern=TRUE)) character(0) > try(system("convert tmp/671791313920735.ps tmp/671791313920735.png",intern=TRUE)) character(0) > try(system("convert tmp/7dy111313920735.ps tmp/7dy111313920735.png",intern=TRUE)) character(0) > > > proc.time() user system elapsed 1.596 0.330 1.926