R version 2.9.0 (2009-04-17) Copyright (C) 2009 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(106.5789,101.3158,98.68421,100,102.6316,102.6316,102.6316,98.68421,98.68421,93.42105,98.68421,98.68421,100,101.3158,101.3158,103.9474,106.5789,107.8947,107.8947,107.8947,103.9474,96.05263,90.78947,86.84211,88.15789,90.78947,92.10526,93.42105,94.73684,93.42105,90.78947,92.10526,89.47368,84.21053,88.15789,86.84211,84.21053,82.89474,81.57895,85.52632,89.47368,89.47368,84.21053,80.26316,76.31579,80.26316,94.73684,96.05263,90.78947,80.26316,76.31579,81.57895,93.42105,101.3158,103.9474,101.3158,97.36842,98.68421,105.2632,106.5789) > 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] 60 > (np <- floor(n / par1)) [1] 5 > 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] 5 5 5 5 5 5 5 5 5 5 5 5 > arr [,1] [,2] [,3] [,4] [,5] [,6] [1,] 106.57890 100.00000 88.15789 84.21053 90.78947 NA [2,] 101.31580 101.31580 90.78947 82.89474 80.26316 NA [3,] 98.68421 101.31580 92.10526 81.57895 76.31579 NA [4,] 100.00000 103.94740 93.42105 85.52632 81.57895 NA [5,] 102.63160 106.57890 94.73684 89.47368 93.42105 NA [6,] 102.63160 107.89470 93.42105 89.47368 101.31580 NA [7,] 102.63160 107.89470 90.78947 84.21053 103.94740 NA [8,] 98.68421 107.89470 92.10526 80.26316 101.31580 NA [9,] 98.68421 103.94740 89.47368 76.31579 97.36842 NA [10,] 93.42105 96.05263 84.21053 80.26316 98.68421 NA [11,] 98.68421 90.78947 88.15789 94.73684 105.26320 NA [12,] 98.68421 86.84211 86.84211 96.05263 106.57890 NA > darr [,1] [,2] [,3] [,4] [,5] [,6] [1,] -5.26310 1.31580 2.63158 -1.31579 -10.52631 NA [2,] -2.63159 0.00000 1.31579 -1.31579 -3.94737 NA [3,] 1.31579 2.63160 1.31579 3.94737 5.26316 NA [4,] 2.63160 2.63150 1.31579 3.94736 11.84210 NA [5,] 0.00000 1.31580 -1.31579 0.00000 7.89475 NA [6,] 0.00000 0.00000 -2.63158 -5.26315 2.63160 NA [7,] -3.94739 0.00000 1.31579 -3.94737 -2.63160 NA [8,] 0.00000 -3.94730 -2.63158 -3.94737 -3.94738 NA [9,] -5.26316 -7.89477 -5.26315 3.94737 1.31579 NA [10,] 5.26316 -5.26316 3.94736 14.47368 6.57899 NA [11,] 0.00000 -3.94736 -1.31578 1.31579 1.31570 NA [12,] 1.31579 1.31578 -2.63158 -5.26316 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/html/rcomp/tmp/125nb1261584913.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/rcomp/tmp/2kgd21261584913.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/rcomp/tmp/3yc8d1261584913.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/rcomp/tmp/4yncu1261584913.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] [,6] [,7] [1,] 84.21053 80.26316 76.31579 81.57895 89.47368 89.47368 84.21053 [2,] 88.15789 82.89474 81.57895 85.52632 93.42105 93.42105 90.78947 [3,] 90.78947 90.78947 92.10526 93.42105 94.73684 101.31580 102.63160 [4,] 100.00000 101.31580 98.68421 100.00000 102.63160 102.63160 103.94740 [5,] 106.57890 101.31580 101.31580 103.94740 106.57890 107.89470 107.89470 [,8] [,9] [,10] [,11] [,12] [1,] 80.26316 76.31579 80.26316 88.15789 86.84211 [2,] 92.10526 89.47368 84.21053 90.78947 86.84211 [3,] 98.68421 97.36842 93.42105 94.73684 96.05263 [4,] 101.31580 98.68421 96.05263 98.68421 98.68421 [5,] 107.89470 103.94740 98.68421 105.26320 106.57890 $n [1] 5 5 5 5 5 5 5 5 5 5 5 5 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] 82.42186 77.7732 80.01873 83.19398 88.22869 94.80765 93.33424 [2,] 99.15708 103.8057 104.19179 103.64812 101.24499 107.82395 111.92896 [,8] [,9] [,10] [,11] [,12] [1,] 92.17607 90.86028 85.05345 89.15844 87.68503 [2,] 105.19235 103.87656 101.78865 100.31524 104.42023 $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(84.21053, 88.15789, 90.78947, 100, 106.5789, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/5jwbc1261584913.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] [,6] [,7] [,8] [1,] -10.52631 -3.94737 1.31579 1.31579 -1.31579 -5.26315 -3.94739 -3.94738 [2,] -5.26310 -2.63159 1.31579 2.63150 0.00000 -2.63158 -3.94737 -3.94737 [3,] -1.31579 -1.31579 2.63160 2.63160 0.00000 0.00000 -2.63160 -3.94730 [4,] 1.31580 0.00000 3.94737 3.94736 1.31580 0.00000 0.00000 -2.63158 [5,] 2.63158 1.31579 5.26316 3.94736 1.31580 2.63160 1.31579 -2.63158 [,9] [,10] [,11] [,12] [1,] -7.89477 3.94736 -3.94736 -5.263160 [2,] -5.26316 3.94736 -1.31578 -3.947370 [3,] -5.26315 5.26316 0.00000 -0.657900 [4,] 1.31579 6.57899 1.31570 1.315785 [5,] 3.94737 6.57899 1.31579 1.315790 $n [1] 5 5 5 5 5 5 5 5 5 5 5 4 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] -5.964424 -3.1752649 0.7721322 1.701817 -0.929741 -1.859468 -5.4208017 [2,] 3.332844 0.5436849 4.4910678 3.561383 0.929741 1.859468 0.1576017 [,8] [,9] [,10] [,11] [,12] [1,] -4.877034 -9.9118195 3.403657 -1.859397 -4.815792 [2,] -3.017566 -0.6144805 7.122663 1.859397 3.499992 $out [1] 11.84210 7.89475 0.00000 -5.26316 14.47368 $group [1] 4 5 8 10 10 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" "11" "12" Warning message: In bxp(list(stats = c(-10.52631, -5.26310000000001, -1.31579000000001, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/64tw61261584913.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] [1,] 93.42105 86.84211 84.21053 76.31579 76.31579 NA [2,] 98.68421 98.02631 88.15789 80.92105 86.18421 NA [3,] 99.34211 102.63160 90.78947 84.21053 98.02631 NA [4,] 102.63160 107.23680 92.76315 89.47368 102.63160 NA [5,] 106.57890 107.89470 94.73684 96.05263 106.57890 NA $n [1] 12 12 12 12 12 0 $conf [,1] [,2] [,3] [,4] [,5] [,6] [1,] 97.54167 98.43064 88.68898 80.30962 90.52455 NA [2,] 101.14254 106.83256 92.88996 88.11144 105.52808 NA $out numeric(0) $group numeric(0) $names [1] "1" "2" "3" "4" "5" NA Warning message: In bxp(list(stats = c(93.42105, 98.68421, 99.342105, 102.6316, 106.5789, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/7l8bn1261584913.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,] 90.00000 90.78947 90.13158 [2,] 92.10527 92.76315 92.43421 [3,] 94.47368 94.73684 94.07895 [4,] 96.71052 98.02631 97.03948 [5,] 98.94737 102.63160 98.02632 $n [1] 12 12 12 $conf [,1] [,2] [,3] [1,] 92.37319 92.33628 91.97845 [2,] 96.57416 97.13740 96.17944 $out numeric(0) $group numeric(0) $names [1] "mean" "median" "midrange" Warning message: In bxp(list(stats = c(90.000002, 92.105269, 94.473675, 96.71052, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > > try(system("convert tmp/125nb1261584913.ps tmp/125nb1261584913.png",intern=TRUE)) character(0) > try(system("convert tmp/2kgd21261584913.ps tmp/2kgd21261584913.png",intern=TRUE)) character(0) > try(system("convert tmp/3yc8d1261584913.ps tmp/3yc8d1261584913.png",intern=TRUE)) character(0) > try(system("convert tmp/4yncu1261584913.ps tmp/4yncu1261584913.png",intern=TRUE)) character(0) > try(system("convert tmp/5jwbc1261584913.ps tmp/5jwbc1261584913.png",intern=TRUE)) character(0) > try(system("convert tmp/64tw61261584913.ps tmp/64tw61261584913.png",intern=TRUE)) character(0) > try(system("convert tmp/7l8bn1261584913.ps tmp/7l8bn1261584913.png",intern=TRUE)) character(0) > > > proc.time() user system elapsed 1.204 0.966 2.038