R version 2.8.0 (2008-10-20) Copyright (C) 2008 The R Foundation for Statistical Computing ISBN 3-900051-07-0 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(23100 + ,22650 + ,22440 + ,22910 + ,22980 + ,22535 + ,22300 + ,22780 + ,22780 + ,23300 + ,23800 + ,24510 + ,24660 + ,24730 + ,25070 + ,24690 + ,24880 + ,23920 + ,23880 + ,23990 + ,24590 + ,23610 + ,23580 + ,23360 + ,23910 + ,23940 + ,23060 + ,22800 + ,23020 + ,22890 + ,22780 + ,22530 + ,22290 + ,22820 + ,22480 + ,22110 + ,22000 + ,22230 + ,22260 + ,22590 + ,22820 + ,22420 + ,22230 + ,21600 + ,21000 + ,21360 + ,21640 + ,21450 + ,21710 + ,21620 + ,21800 + ,21490 + ,21670 + ,22130 + ,22050 + ,22050 + ,22140 + ,22390 + ,22220 + ,21790 + ,21510 + ,21670 + ,21745 + ,21850 + ,22105 + ,22050 + ,21670 + ,21680 + ,21800 + ,21920 + ,21980 + ,22270 + ,21740 + ,21950 + ,22010 + ,21890 + ,21920 + ,22110 + ,22340 + ,22210 + ,22240 + ,21960 + ,22220 + ,22060 + ,22090 + ,21960 + ,21940 + ,21790 + ,21710 + ,21690 + ,21710 + ,21670 + ,21640 + ,21500 + ,21290 + ,21250 + ,21580 + ,21670 + ,21620 + ,21510 + ,21360 + ,21420 + ,21470 + ,21370 + ,21370 + ,21340 + ,21130 + ,21130 + ,20990 + ,21240 + ,21320 + ,21430 + ,21390 + ,21530 + ,21510 + ,21630 + ,21560 + ,21610 + ,21560 + ,21310 + ,21340 + ,21410 + ,21550 + ,21380 + ,21600 + ,21530 + ,21560 + ,21670 + ,21540 + ,21540 + ,21550 + ,21590 + ,21420 + ,21420 + ,21370 + ,21380 + ,21210 + ,21505 + ,21365 + ,21385 + ,21350 + ,21360 + ,21530 + ,21380 + ,21630 + ,22145 + ,22315 + ,22340 + ,22440 + ,22135 + ,21955 + ,22060 + ,22050 + ,22035 + ,22280 + ,22315 + ,22205 + ,21970 + ,22075 + ,22115 + ,22105 + ,21885 + ,21805 + ,21910 + ,21995 + ,22245 + ,22100 + ,22130 + ,22300 + ,22915 + ,23040 + ,22880 + ,23000 + ,23160 + ,23020 + ,22770 + ,22660 + ,22740 + ,22905 + ,22720 + ,22705 + ,22735 + ,22600 + ,22510 + ,22560 + ,22575 + ,22685 + ,22980 + ,23275 + ,23845 + ,23640 + ,23640 + ,23835 + ,23625 + ,24055 + ,24005 + ,24325 + ,24445 + ,24670 + ,24615 + ,24700 + ,25065 + ,25185 + ,25220 + ,25235 + ,24975 + ,25055 + ,25520 + ,25880 + ,25960 + ,25740 + ,24965 + ,25235 + ,24895 + ,24635 + ,24835 + ,24635 + ,24695 + ,25090 + ,25220 + ,24740 + ,25005 + ,24650 + ,24460 + ,24680 + ,24840 + ,24630 + ,24490 + ,24695) > par1 = '5' > #'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] 229 > (np <- floor(n / par1)) [1] 45 > 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] 46 46 46 46 45 > arr [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [,9] [,10] [,11] [,12] [1,] 23100 22535 23800 24690 24590 23940 22780 22110 22820 21360 21800 22050 [2,] 22650 22300 24510 24880 23610 23060 22530 22000 22420 21640 21490 22140 [3,] 22440 22780 24660 23920 23580 22800 22290 22230 22230 21450 21670 22390 [4,] 22910 22780 24730 23880 23360 23020 22820 22260 21600 21710 22130 22220 [5,] 22980 23300 25070 23990 23910 22890 22480 22590 21000 21620 22050 21790 [,13] [,14] [,15] [,16] [,17] [,18] [,19] [,20] [,21] [,22] [,23] [,24] [1,] 21510 22050 21980 21890 22240 21960 21710 21250 21360 21340 21320 21630 [2,] 21670 21670 22270 21920 21960 21940 21670 21580 21420 21130 21430 21560 [3,] 21745 21680 21740 22110 22220 21790 21640 21670 21470 21130 21390 21610 [4,] 21850 21800 21950 22340 22060 21710 21500 21620 21370 20990 21530 21560 [5,] 22105 21920 22010 22210 22090 21690 21290 21510 21370 21240 21510 21310 [,25] [,26] [,27] [,28] [,29] [,30] [,31] [,32] [,33] [,34] [,35] [,36] [1,] 21340 21530 21550 21380 21350 22145 21955 22315 22105 22245 23040 22770 [2,] 21410 21560 21590 21210 21360 22315 22060 22205 21885 22100 22880 22660 [3,] 21550 21670 21420 21505 21530 22340 22050 21970 21805 22130 23000 22740 [4,] 21380 21540 21420 21365 21380 22440 22035 22075 21910 22300 23160 22905 [5,] 21600 21540 21370 21385 21630 22135 22280 22115 21995 22915 23020 22720 [,37] [,38] [,39] [,40] [,41] [,42] [,43] [,44] [,45] [,46] [1,] 22705 22575 23640 24005 24700 24975 25740 24835 24740 24840 [2,] 22735 22685 23640 24325 25065 25055 24965 24635 25005 24630 [3,] 22600 22980 23835 24445 25185 25520 25235 24695 24650 24490 [4,] 22510 23275 23625 24670 25220 25880 24895 25090 24460 24695 [5,] 22560 23845 24055 24615 25235 25960 24635 25220 24680 NA > darr [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [,9] [,10] [,11] [,12] [,13] [,14] [1,] -450 -235 710 190 -980 -880 -250 -110 -400 280 -310 90 160 -380 [2,] -210 480 150 -960 -30 -260 -240 230 -190 -190 180 250 75 10 [3,] 470 0 70 -40 -220 220 530 30 -630 260 460 -170 105 120 [4,] 70 520 340 110 550 -130 -340 330 -600 -90 -80 -430 255 120 [5,] -445 500 -380 600 30 -110 -370 230 360 180 0 -280 -55 60 [,15] [,16] [,17] [,18] [,19] [,20] [,21] [,22] [,23] [,24] [,25] [,26] [1,] 290 30 -280 -20 -40 330 60 -210 110 -70 70 30 [2,] -530 190 260 -150 -30 90 50 0 -40 50 140 110 [3,] 210 230 -160 -80 -140 -50 -100 -140 140 -50 -170 -130 [4,] 60 -130 30 -20 -210 -110 0 250 -20 -250 220 0 [5,] -120 30 -130 20 -40 -150 -30 80 120 30 -70 10 [,27] [,28] [,29] [,30] [,31] [,32] [,33] [,34] [,35] [,36] [,37] [,38] [1,] 40 -170 10 170 105 -110 -220 -145 -160 -110 30 110 [2,] -170 295 170 25 -10 -235 -80 30 120 80 -135 295 [3,] 0 -140 -150 100 -15 105 105 170 160 165 -90 295 [4,] -50 20 250 -305 245 40 85 615 -140 -185 50 570 [5,] 10 -35 515 -180 35 -10 250 125 -250 -15 15 -205 [,39] [,40] [,41] [,42] [,43] [,44] [,45] [,46] [1,] 0 320 365 80 -775 -200 265 -210 [2,] 195 120 120 465 270 60 -355 -140 [3,] -210 225 35 360 -340 395 -190 205 [4,] 430 -55 15 80 -260 130 220 NA [5,] -50 85 -260 -220 200 -480 160 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/html/freestat/rcomp/tmp/1kmlb1272492313.ps",horizontal=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/html/freestat/rcomp/tmp/2uv3w1272492313.ps",horizontal=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/html/freestat/rcomp/tmp/3uv3w1272492313.ps",horizontal=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/html/freestat/rcomp/tmp/454kh1272492313.ps",horizontal=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] [1,] 21250.0 21130.0 21130 20990 21000 [2,] 21630.0 21640.0 21670 21620 21620 [3,] 22192.5 22172.5 22225 22240 22135 [4,] 23640.0 23060.0 23000 23275 23300 [5,] 25740.0 25065.0 24695 25220 25235 $n [1] 46 46 46 46 45 $conf [,1] [,2] [,3] [,4] [,5] [1,] 21724.25 21841.7 21915.17 21854.45 21739.31 [2,] 22660.75 22503.3 22534.83 22625.55 22530.69 $out [1] 25185 25520 25235 25880 25960 $group [1] 3 3 3 4 5 $names [1] "1" "2" "3" "4" "5" > dev.off() null device 1 > postscript(file="/var/www/html/freestat/rcomp/tmp/554kh1272492313.ps",horizontal=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] [1,] -450 -530 -630.0 -600 -445 [2,] -210 -140 -140.0 -110 -130 [3,] -10 50 32.5 30 0 [4,] 110 170 205.0 220 85 [5,] 365 480 530.0 615 360 $n [1] 46 46 46 45 45 $conf [,1] [,2] [,3] [,4] [,5] [1,] -84.54665 -22.21707 -47.87061 -47.72572 -50.63949 [2,] 64.54665 122.21707 112.87061 107.72572 50.63949 $out [1] 710 -980 -880 -775 -960 500 600 515 -480 $group [1] 1 1 1 1 2 5 5 5 5 $names [1] "1" "2" "3" "4" "5" > dev.off() null device 1 > postscript(file="/var/www/html/freestat/rcomp/tmp/6gej21272492313.ps",horizontal=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] [,12] [1,] 22440 22300 24510 23880 23360 22800 22290 22000 21000 21360 21490 22050 [2,] 22650 22535 24510 23920 23580 22890 22480 22110 21600 21450 21670 22050 [3,] 22910 22780 24660 23990 23610 23020 22530 22230 22230 21620 21800 22140 [4,] 22980 22780 24730 24690 23910 23060 22780 22260 22420 21640 22050 22220 [5,] 23100 22780 24730 24880 23910 23060 22820 22260 22820 21710 22130 22390 [,13] [,14] [,15] [,16] [,17] [,18] [,19] [,20] [,21] [,22] [,23] [,24] [1,] 21510 21670 21950 21890 21960 21690 21290 21510 21360 20990 21320 21560 [2,] 21670 21680 21950 21920 22060 21710 21500 21510 21370 21130 21390 21560 [3,] 21745 21800 21980 22110 22090 21790 21640 21580 21370 21130 21430 21560 [4,] 21850 21920 22010 22210 22220 21940 21670 21620 21420 21240 21510 21610 [5,] 22105 22050 22010 22340 22240 21960 21710 21670 21470 21340 21530 21630 [,25] [,26] [,27] [,28] [,29] [,30] [,31] [,32] [,33] [,34] [,35] [,36] [1,] 21340 21530 21370 21365 21350 22135 22035 21970 21805 22100 23000 22660 [2,] 21380 21540 21420 21365 21360 22145 22035 22075 21885 22130 23000 22720 [3,] 21410 21540 21420 21380 21380 22315 22050 22115 21910 22245 23020 22740 [4,] 21550 21560 21550 21385 21530 22340 22060 22205 21995 22300 23040 22770 [5,] 21600 21560 21590 21385 21630 22440 22060 22315 22105 22300 23040 22770 [,37] [,38] [,39] [,40] [,41] [,42] [,43] [,44] [,45] [,46] [1,] 22510 22575 23625 24005 25065 24975 24635 24635 24650 24490.0 [2,] 22560 22685 23640 24325 25065 25055 24895 24695 24650 24560.0 [3,] 22600 22980 23640 24445 25185 25520 24965 24835 24680 24662.5 [4,] 22705 23275 23835 24615 25220 25880 25235 25090 24740 24767.5 [5,] 22735 23845 24055 24670 25235 25960 25740 25220 24740 24840.0 $n [1] 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 [39] 5 5 5 5 5 5 5 4 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 22676.82 22606.88 24504.55 23445.92 23376.82 22899.88 22318.02 22124.01 [2,] 23143.18 22953.12 24815.45 24534.08 23843.18 23140.12 22741.98 22335.99 [,9] [,10] [,11] [,12] [,13] [,14] [,15] [,16] [1,] 21650.59 21485.75 21531.49 22019.88 21617.81 21630.42 21937.60 21905.09 [2,] 22809.41 21754.25 22068.51 22260.12 21872.19 21969.58 22022.40 22314.91 [,17] [,18] [,19] [,20] [,21] [,22] [,23] [,24] [1,] 21976.94 21627.48 21519.88 21502.27 21334.67 21052.27 21345.21 21524.67 [2,] 22203.06 21952.52 21760.12 21657.73 21405.33 21207.73 21514.79 21595.33 [,25] [,26] [,27] [,28] [,29] [,30] [,31] [,32] [1,] 21289.88 21525.87 21328.14 21365.87 21259.88 22177.21 22032.34 22023.14 [2,] 21530.12 21554.13 21511.86 21394.13 21500.12 22452.79 22067.66 22206.86 [,33] [,34] [,35] [,36] [,37] [,38] [,39] [,40] [1,] 21832.27 22124.88 22991.74 22704.67 22497.54 22563.11 23502.21 24240.09 [2,] 21987.73 22365.12 23048.26 22775.33 22702.46 23396.89 23777.79 24649.91 [,41] [,42] [,43] [,44] [,45] [,46] [1,] 25075.48 24937.06 24724.76 24555.89 24616.41 24498.58 [2,] 25294.52 26102.94 25205.24 25114.11 24743.59 24826.42 $out [1] 23300 23800 25070 24590 23940 22590 21790 22270 21740 21250 21310 21670 [13] 21210 21505 21955 22280 22915 22880 23160 22905 24700 25005 24460 $group [1] 2 3 3 5 6 8 12 15 15 20 24 26 28 28 31 31 34 35 35 36 41 45 45 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" "11" "12" "13" "14" "15" [16] "16" "17" "18" "19" "20" "21" "22" "23" "24" "25" "26" "27" "28" "29" "30" [31] "31" "32" "33" "34" "35" "36" "37" "38" "39" "40" "41" "42" "43" "44" "45" [46] NA Warning message: In bxp(list(stats = c(22440, 22650, 22910, 22980, 23100, 22300, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/freestat/rcomp/tmp/7gej21272492313.ps",horizontal=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,] 22596.20 22135.0 22331.25 [2,] 22608.26 22172.5 22332.50 [3,] 22650.65 22192.5 22444.38 [4,] 22654.11 22225.0 22460.00 [5,] 22658.59 22240.0 22577.50 $n [1] 5 5 5 $conf [,1] [,2] [,3] [1,] 22618.25 22155.40 22354.28 [2,] 22683.05 22229.60 22534.47 $out numeric(0) $group numeric(0) $names [1] "mean" "median" "midrange" Warning message: In bxp(list(stats = c(22596.1956521739, 22608.2608695652, 22650.6521739130, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > > try(system("convert tmp/1kmlb1272492313.ps tmp/1kmlb1272492313.png",intern=TRUE)) character(0) > try(system("convert tmp/2uv3w1272492313.ps tmp/2uv3w1272492313.png",intern=TRUE)) character(0) > try(system("convert tmp/3uv3w1272492313.ps tmp/3uv3w1272492313.png",intern=TRUE)) character(0) > try(system("convert tmp/454kh1272492313.ps tmp/454kh1272492313.png",intern=TRUE)) character(0) > try(system("convert tmp/554kh1272492313.ps tmp/554kh1272492313.png",intern=TRUE)) character(0) > try(system("convert tmp/6gej21272492313.ps tmp/6gej21272492313.png",intern=TRUE)) character(0) > try(system("convert tmp/7gej21272492313.ps tmp/7gej21272492313.png",intern=TRUE)) character(0) > > > proc.time() user system elapsed 1.941 1.505 2.234