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(94,93,92,90,88,87,88,90,91,91,92,94,88,90,82,83,88,83,85,81,79,71,70,85,88,84,81,93,99,96,90,95,93,86,77,89,90,84,76,96,104,101,95,101,95,90,88,99,81,79,70,95,100,105,107,106,99,86,81,95,82,78,68,96,98,107,102,98,93,69,65,90,87,80,67,85,85,92,87,85,79,58,47,67) > 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] 84 > (np <- floor(n / par1)) [1] 7 > 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] 7 7 7 7 7 7 7 7 7 7 7 7 > arr [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 94 88 88 90 81 82 87 NA [2,] 93 90 84 84 79 78 80 NA [3,] 92 82 81 76 70 68 67 NA [4,] 90 83 93 96 95 96 85 NA [5,] 88 88 99 104 100 98 85 NA [6,] 87 83 96 101 105 107 92 NA [7,] 88 85 90 95 107 102 87 NA [8,] 90 81 95 101 106 98 85 NA [9,] 91 79 93 95 99 93 79 NA [10,] 91 71 86 90 86 69 58 NA [11,] 92 70 77 88 81 65 47 NA [12,] 94 85 89 99 95 90 67 NA > darr [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] -1 2 -4 -6 -2 -4 -7 NA [2,] -1 -8 -3 -8 -9 -10 -13 NA [3,] -2 1 12 20 25 28 18 NA [4,] -2 5 6 8 5 2 0 NA [5,] -1 -5 -3 -3 5 9 7 NA [6,] 1 2 -6 -6 2 -5 -5 NA [7,] 2 -4 5 6 -1 -4 -2 NA [8,] 1 -2 -2 -6 -7 -5 -6 NA [9,] 0 -8 -7 -5 -13 -24 -21 NA [10,] 1 -1 -9 -2 -5 -4 -11 NA [11,] 2 15 12 11 14 25 20 NA [12,] -6 3 1 -18 -13 -3 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/1e7nj1281095040.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/27gmm1281095040.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/37gmm1281095040.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/4hp371281095040.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] [,8] [,9] [,10] [,11] [,12] [1,] 81.0 78.0 67.0 83.0 85.0 83.0 85.0 81.0 79 58 47.0 85.0 [2,] 84.5 79.5 69.0 87.5 88.0 89.5 87.5 87.5 85 70 67.5 87.0 [3,] 88.0 84.0 76.0 93.0 98.0 96.0 90.0 95.0 93 86 77.0 90.0 [4,] 89.0 87.0 81.5 95.5 99.5 103.0 98.5 99.5 94 88 84.5 94.5 [5,] 94.0 93.0 92.0 96.0 104.0 107.0 107.0 106.0 99 91 92.0 99.0 $n [1] 7 7 7 7 7 7 7 7 7 7 7 7 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 85.31267 79.52112 68.5352 88.22253 91.13239 87.93802 83.43098 87.8338 [2,] 90.68733 88.47888 83.4648 97.77747 104.86761 104.06198 96.56902 102.1662 [,9] [,10] [,11] [,12] [1,] 87.62535 75.25069 66.84787 85.52112 [2,] 98.37465 96.74931 87.15213 94.47888 $out [1] 67 $group [1] 12 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" "11" "12" Warning message: In bxp(list(stats = c(81, 84.5, 88, 89, 94, 78, 79.5, 84, 87, 93, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/5hp371281095040.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] [,9] [,10] [,11] [,12] [1,] -7.0 -13.0 -2.0 -2.0 -5 -6.0 -4.0 -7 -24 -11.0 11.0 -18.0 [2,] -5.0 -9.5 6.5 1.0 -3 -5.5 -3.0 -6 -17 -7.0 11.5 -13.0 [3,] -4.0 -8.0 18.0 5.0 -1 -5.0 -1.0 -5 -8 -4.0 14.0 -4.5 [4,] -1.5 -5.5 22.5 5.5 6 1.5 3.5 -2 -6 -1.5 17.5 1.0 [5,] 2.0 -1.0 28.0 8.0 9 2.0 6.0 1 0 1.0 25.0 3.0 $n [1] 7 7 7 7 7 7 7 7 7 7 7 6 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] -6.090144 -10.388735 8.445058 2.312673 -6.374655 -9.180287 -4.881695 [2,] -1.909856 -5.611265 27.554942 7.687327 4.374655 -0.819713 2.881695 [,8] [,9] [,10] [,11] [,12] [1,] -7.388735 -14.569023 -7.2845113 10.41690 -13.530452 [2,] -2.611265 -1.430977 -0.7154887 17.58310 4.530452 $out [1] 2 $group [1] 11 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" "11" "12" Warning message: In bxp(list(stats = c(-7, -5, -4, -1.5, 2, -13, -9.5, -8, -5.5, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/6sy2a1281095040.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] [1,] 87.0 71.0 77.0 76 70.0 65.0 47.0 NA [2,] 89.0 80.0 85.0 89 81.0 73.5 67.0 NA [3,] 91.0 83.0 89.5 95 95.0 91.5 82.5 NA [4,] 92.5 86.5 94.0 100 102.5 98.0 86.0 NA [5,] 94.0 90.0 99.0 104 107.0 107.0 92.0 NA $n [1] 12 12 12 12 12 12 12 0 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 89.40363 80.0353 85.39504 89.98283 85.1937 80.32539 73.83397 NA [2,] 92.59637 85.9647 93.60496 100.01717 104.8063 102.67461 91.16603 NA $out [1] 70 $group [1] 2 $names [1] "1" "2" "3" "4" "5" "6" "7" NA Warning message: In bxp(list(stats = c(87, 89, 91, 92.5, 94, 71, 80, 83, 86.5, 90, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/7sy2a1281095040.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,] 74.28571 76 75.250 [2,] 81.35714 85 81.125 [3,] 89.14286 90 90.125 [4,] 93.57143 94 93.250 [5,] 95.85714 98 96.250 $n [1] 12 12 12 $conf [,1] [,2] [,3] [1,] 83.57184 85.89504 84.5947 [2,] 94.71387 94.10496 95.6553 $out numeric(0) $group numeric(0) $names [1] "mean" "median" "midrange" Warning message: In bxp(list(stats = c(74.2857142857143, 81.3571428571429, 89.1428571428571, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > > try(system("convert tmp/1e7nj1281095040.ps tmp/1e7nj1281095040.png",intern=TRUE)) character(0) > try(system("convert tmp/27gmm1281095040.ps tmp/27gmm1281095040.png",intern=TRUE)) character(0) > try(system("convert tmp/37gmm1281095040.ps tmp/37gmm1281095040.png",intern=TRUE)) character(0) > try(system("convert tmp/4hp371281095040.ps tmp/4hp371281095040.png",intern=TRUE)) character(0) > try(system("convert tmp/5hp371281095040.ps tmp/5hp371281095040.png",intern=TRUE)) character(0) > try(system("convert tmp/6sy2a1281095040.ps tmp/6sy2a1281095040.png",intern=TRUE)) character(0) > try(system("convert tmp/7sy2a1281095040.ps tmp/7sy2a1281095040.png",intern=TRUE)) character(0) > > > proc.time() user system elapsed 1.175 0.923 1.773