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(268,267,266,264,262,261,262,264,265,265,266,268,260,264,265,262,258,265,273,273,270,263,260,257,248,248,237,228,225,231,243,250,246,240,236,235,225,230,225,221,231,234,249,257,253,252,245,239,229,232,222,218,223,221,230,234,237,226,215,211,203,202,187,179,181,172,182,180,175,163,160,151,145,140,125,122,124,108,115,116,104,98,101,91) > 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,] 268 260 248 225 229 203 145 NA [2,] 267 264 248 230 232 202 140 NA [3,] 266 265 237 225 222 187 125 NA [4,] 264 262 228 221 218 179 122 NA [5,] 262 258 225 231 223 181 124 NA [6,] 261 265 231 234 221 172 108 NA [7,] 262 273 243 249 230 182 115 NA [8,] 264 273 250 257 234 180 116 NA [9,] 265 270 246 253 237 175 104 NA [10,] 265 263 240 252 226 163 98 NA [11,] 266 260 236 245 215 160 101 NA [12,] 268 257 235 239 211 151 91 NA > darr [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] -1 4 0 5 3 -1 -5 NA [2,] -1 1 -11 -5 -10 -15 -15 NA [3,] -2 -3 -9 -4 -4 -8 -3 NA [4,] -2 -4 -3 10 5 2 2 NA [5,] -1 7 6 3 -2 -9 -16 NA [6,] 1 8 12 15 9 10 7 NA [7,] 2 0 7 8 4 -2 1 NA [8,] 1 -3 -4 -4 3 -5 -12 NA [9,] 0 -7 -6 -1 -11 -12 -6 NA [10,] 1 -3 -4 -7 -11 -3 3 NA [11,] 2 -3 -1 -6 -4 -9 -10 NA [12,] -8 -9 -10 -10 -8 -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/html/rcomp/tmp/1dx5a1278599449.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/2dx5a1278599449.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/3no4v1278599449.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/4no4v1278599449.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,] 203 202 187.0 179.0 181.0 172.0 182.0 180.0 175 163.0 101.0 91 [2,] 214 216 204.5 198.5 202.0 196.5 206.0 207.0 206 194.5 187.5 181 [3,] 229 232 225.0 221.0 225.0 231.0 243.0 250.0 246 240.0 236.0 235 [4,] 254 256 251.0 245.0 244.5 247.5 255.5 260.5 259 257.5 252.5 248 [5,] 268 267 266.0 264.0 262.0 265.0 273.0 273.0 270 265.0 266.0 268 $n [1] 7 7 7 7 7 7 7 7 7 7 7 7 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 205.1126 208.1126 197.2310 193.2310 199.6197 200.5436 213.4394 218.0507 [2,] 252.8874 255.8874 252.7690 248.7690 250.3803 261.4564 272.5606 281.9493 [,9] [,10] [,11] [,12] [1,] 214.3493 202.3774 197.1830 194.9887 [2,] 277.6507 277.6226 274.8170 275.0113 $out [1] 145 140 125 122 124 108 115 116 104 98 $group [1] 1 2 3 4 5 6 7 8 9 10 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" "11" "12" Warning message: In bxp(list(stats = c(203, 214, 229, 254, 268, 202, 216, 232, 256, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/5no4v1278599449.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,] -5.0 -15 -9 -4.0 -16.0 7.0 -2.0 -5.0 -12.0 -11.0 -10.0 -10.0 [2,] -1.0 -13 -6 -2.5 -5.5 7.5 0.5 -4.5 -9.0 -5.5 -7.5 -10.0 [3,] 0.0 -10 -4 2.0 -1.0 9.0 2.0 -4.0 -6.0 -3.0 -4.0 -8.5 [4,] 3.5 -3 -3 3.5 4.5 11.0 5.5 -1.0 -3.5 -1.0 -2.0 -8.0 [5,] 5.0 1 -2 10.0 7.0 15.0 8.0 3.0 0.0 3.0 2.0 -6.0 $n [1] 7 7 7 7 7 7 7 7 7 7 7 6 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] -2.687327 -15.971839 -5.791552 -1.583103 -6.971839 6.909856 -0.9859193 [2,] 2.687327 -4.028161 -2.208448 5.583103 4.971839 11.090144 4.9859193 [,8] [,9] [,10] [,11] [,12] [1,] -6.090144 -9.284511 -5.6873274 -7.2845113 -9.790065 [2,] -1.909856 -2.715489 -0.3126726 -0.7154887 -7.209935 $out [1] 1 -12 $group [1] 6 8 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" "11" "12" Warning message: In bxp(list(stats = c(-5, -1, 0, 3.5, 5, -15, -13, -10, -3, 1, -9, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/6yf4g1278599449.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,] 261.0 257.0 225.0 221.0 211.0 151.0 91.0 NA [2,] 263.0 260.0 233.0 227.5 219.5 167.5 102.5 NA [3,] 265.0 263.5 238.5 236.5 224.5 179.5 115.5 NA [4,] 266.5 267.5 247.0 250.5 231.0 184.5 124.5 NA [5,] 268.0 273.0 250.0 257.0 237.0 203.0 145.0 NA $n [1] 12 12 12 12 12 12 12 0 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 263.4036 260.0792 232.1145 226.0095 219.2548 171.7462 105.4657 NA [2,] 266.5964 266.9208 244.8855 246.9905 229.7452 187.2538 125.5343 NA $out numeric(0) $group numeric(0) $names [1] "1" "2" "3" "4" "5" "6" "7" NA Warning message: In bxp(list(stats = c(261, 263, 265, 266.5, 268, 257, 260, 263.5, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/7yf4g1278599449.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,] 207.4286 221.0 214.500 [2,] 213.2857 227.0 221.875 [3,] 216.7143 233.5 226.875 [4,] 223.4286 241.5 233.125 [5,] 226.1429 250.0 236.000 $n [1] 12 12 12 $conf [,1] [,2] [,3] [1,] 212.0881 226.8865 221.7438 [2,] 221.3405 240.1135 232.0062 $out numeric(0) $group numeric(0) $names [1] "mean" "median" "midrange" Warning message: In bxp(list(stats = c(207.428571428571, 213.285714285714, 216.714285714286, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > > try(system("convert tmp/1dx5a1278599449.ps tmp/1dx5a1278599449.png",intern=TRUE)) character(0) > try(system("convert tmp/2dx5a1278599449.ps tmp/2dx5a1278599449.png",intern=TRUE)) character(0) > try(system("convert tmp/3no4v1278599449.ps tmp/3no4v1278599449.png",intern=TRUE)) character(0) > try(system("convert tmp/4no4v1278599449.ps tmp/4no4v1278599449.png",intern=TRUE)) character(0) > try(system("convert tmp/5no4v1278599449.ps tmp/5no4v1278599449.png",intern=TRUE)) character(0) > try(system("convert tmp/6yf4g1278599449.ps tmp/6yf4g1278599449.png",intern=TRUE)) character(0) > try(system("convert tmp/7yf4g1278599449.ps tmp/7yf4g1278599449.png",intern=TRUE)) character(0) > > > proc.time() user system elapsed 1.176 0.933 1.885