R version 2.11.1 (2010-05-31) Copyright (C) 2010 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(118,117,116,114,112,111,112,114,115,115,116,118,126,131,122,124,119,112,109,108,117,122,127,124,129,141,127,133,114,98,93,101,111,128,126,134,140,158,144,146,138,119,113,120,127,141,144,150,156,174,163,167,160,141,132,144,155,164,162,181,187,209,189,201,193,177,159,158,155,164,163,185,191,217,193,192,184,166,145,146,138,149,145,166) > 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,] 118 126 129 140 156 187 191 NA [2,] 117 131 141 158 174 209 217 NA [3,] 116 122 127 144 163 189 193 NA [4,] 114 124 133 146 167 201 192 NA [5,] 112 119 114 138 160 193 184 NA [6,] 111 112 98 119 141 177 166 NA [7,] 112 109 93 113 132 159 145 NA [8,] 114 108 101 120 144 158 146 NA [9,] 115 117 111 127 155 155 138 NA [10,] 115 122 128 141 164 164 149 NA [11,] 116 127 126 144 162 163 145 NA [12,] 118 124 134 150 181 185 166 NA > darr [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] -1 5 12 18 18 22 26 NA [2,] -1 -9 -14 -14 -11 -20 -24 NA [3,] -2 2 6 2 4 12 -1 NA [4,] -2 -5 -19 -8 -7 -8 -8 NA [5,] -1 -7 -16 -19 -19 -16 -18 NA [6,] 1 -3 -5 -6 -9 -18 -21 NA [7,] 2 -1 8 7 12 -1 1 NA [8,] 1 9 10 7 11 -3 -8 NA [9,] 0 5 17 14 9 9 11 NA [10,] 1 5 -2 3 -2 -1 -4 NA [11,] 2 -3 8 6 19 22 21 NA [12,] 8 5 6 6 6 6 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/rcomp/tmp/1fprk1281885758.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/rcomp/tmp/2qy8n1281885758.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/rcomp/tmp/3qy8n1281885758.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/rcomp/tmp/417pq1281885758.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,] 118.0 117.0 116.0 114.0 112.0 98.0 93.0 101 111.0 115.0 116.0 118.0 [2,] 127.5 136.0 124.5 128.5 116.5 111.5 110.5 111 116.0 125.0 126.5 129.0 [3,] 140.0 158.0 144.0 146.0 138.0 119.0 113.0 120 127.0 141.0 144.0 150.0 [4,] 171.5 191.5 176.0 179.5 172.0 153.5 138.5 145 146.5 156.5 153.5 173.5 [5,] 191.0 217.0 193.0 201.0 193.0 177.0 159.0 158 155.0 164.0 163.0 185.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,] 113.7239 124.8563 113.2450 115.5436 104.8563 93.91828 96.27885 99.69575 [2,] 166.2761 191.1437 174.7550 176.4564 171.1437 144.08172 129.72115 140.30425 [,9] [,10] [,11] [,12] [1,] 108.7859 122.1887 127.8760 123.4253 [2,] 145.2141 159.8113 160.1240 176.5747 $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(118, 127.5, 140, 171.5, 191, 117, 136, 158, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/rcomp/tmp/517pq1281885758.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,] -1.0 -24 -2.0 -8 -19.0 -21.0 -1.0 -8.0 0.0 -4 -3 6 [2,] 8.5 -17 0.5 -8 -18.5 -13.5 0.0 -1.0 7.0 -2 4 6 [3,] 18.0 -14 2.0 -8 -16.0 -6.0 2.0 7.0 9.0 -1 8 6 [4,] 20.0 -10 5.0 -6 -11.5 -4.0 7.5 9.5 12.5 2 20 6 [5,] 26.0 -1 6.0 -5 -1.0 1.0 12.0 11.0 17.0 5 22 6 $n [1] 7 7 7 7 7 7 7 7 7 7 7 6 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] 11.13239 -18.180287 -0.6873274 -9.194368 -20.18029 -11.6732467 -2.478879 [2,] 24.86761 -9.819713 4.6873274 -6.805632 -11.81971 -0.3267533 6.478879 [,8] [,9] [,10] [,11] [,12] [1,] 0.7295694 5.715489 -3.388735 -1.554942 6 [2,] 13.2704306 12.284511 1.388735 17.554942 6 $out [1] 12 -2 -19 8 5 $group [1] 3 4 4 12 12 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" "11" "12" Warning message: In bxp(list(stats = c(-1, 8.5, 18, 20, 26, -24, -17, -14, -10, -1, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/rcomp/tmp/617pq1281885758.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,] 111.0 108.0 93.0 113.0 132.0 155 138.0 NA [2,] 113.0 114.5 106.0 123.5 149.5 161 145.5 NA [3,] 115.0 122.0 126.5 140.5 161.0 181 166.0 NA [4,] 116.5 125.0 131.0 145.0 165.5 191 191.5 NA [5,] 118.0 131.0 141.0 158.0 181.0 209 217.0 NA $n [1] 12 12 12 12 12 12 12 0 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 113.4036 117.2109 115.0973 130.6937 153.7023 167.3168 145.0191 NA [2,] 116.5964 126.7891 137.9027 150.3063 168.2977 194.6832 186.9809 NA $out numeric(0) $group numeric(0) $names [1] "1" "2" "3" "4" "5" "6" "7" NA Warning message: In bxp(list(stats = c(111, 113, 115, 116.5, 118, 108, 114.5, 122, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/rcomp/tmp/7bhpt1281885758.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,] 123.2857 113.0 124.500 [2,] 131.5714 123.5 131.875 [3,] 143.0714 140.5 142.500 [4,] 150.8571 145.0 150.750 [5,] 163.8571 158.0 163.750 $n [1] 12 12 12 $conf [,1] [,2] [,3] [1,] 134.2751 130.6937 133.8910 [2,] 151.8678 150.3063 151.1090 $out numeric(0) $group numeric(0) $names [1] "mean" "median" "midrange" Warning message: In bxp(list(stats = c(123.285714285714, 131.571428571429, 143.071428571429, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > > try(system("convert tmp/1fprk1281885758.ps tmp/1fprk1281885758.png",intern=TRUE)) character(0) > try(system("convert tmp/2qy8n1281885758.ps tmp/2qy8n1281885758.png",intern=TRUE)) character(0) > try(system("convert tmp/3qy8n1281885758.ps tmp/3qy8n1281885758.png",intern=TRUE)) character(0) > try(system("convert tmp/417pq1281885758.ps tmp/417pq1281885758.png",intern=TRUE)) character(0) > try(system("convert tmp/517pq1281885758.ps tmp/517pq1281885758.png",intern=TRUE)) character(0) > try(system("convert tmp/617pq1281885758.ps tmp/617pq1281885758.png",intern=TRUE)) character(0) > try(system("convert tmp/7bhpt1281885758.ps tmp/7bhpt1281885758.png",intern=TRUE)) character(0) > > > proc.time() user system elapsed 1.89 1.09 3.02