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(259,258,257,255,253,252,253,255,256,256,257,259,267,263,266,257,249,249,251,252,252,252,256,257,259,260,261,253,243,233,241,239,233,228,228,227,225,230,222,207,190,184,192,187,173,167,163,156,153,157,152,128,115,114,136,132,126,124,123,119,105,107,108,92,74,73,100,97,99,102,99,103,92,99,97,87,69,66,95,91,93,99,91,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,] 259 267 259 225 153 105 92 NA [2,] 258 263 260 230 157 107 99 NA [3,] 257 266 261 222 152 108 97 NA [4,] 255 257 253 207 128 92 87 NA [5,] 253 249 243 190 115 74 69 NA [6,] 252 249 233 184 114 73 66 NA [7,] 253 251 241 192 136 100 95 NA [8,] 255 252 239 187 132 97 91 NA [9,] 256 252 233 173 126 99 93 NA [10,] 256 252 228 167 124 102 99 NA [11,] 257 256 228 163 123 99 91 NA [12,] 259 257 227 156 119 103 91 NA > darr [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] -1 -4 1 5 4 2 7 NA [2,] -1 3 1 -8 -5 1 -2 NA [3,] -2 -9 -8 -15 -24 -16 -10 NA [4,] -2 -8 -10 -17 -13 -18 -18 NA [5,] -1 0 -10 -6 -1 -1 -3 NA [6,] 1 2 8 8 22 27 29 NA [7,] 2 1 -2 -5 -4 -3 -4 NA [8,] 1 0 -6 -14 -6 2 2 NA [9,] 0 0 -5 -6 -2 3 6 NA [10,] 1 4 0 -4 -1 -3 -8 NA [11,] 2 1 -1 -7 -4 4 0 NA [12,] 8 2 -2 -3 -14 -11 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/1seit1280410050.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/2seit1280410050.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/3seit1280410050.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/435iw1280410050.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,] 92 99 97 87 69.0 66.0 95 91.0 93.0 99 91 91 [2,] 129 132 130 110 94.5 93.5 118 114.5 112.5 113 111 111 [3,] 225 230 222 207 190.0 184.0 192 187.0 173.0 167 163 156 [4,] 259 259 259 254 246.0 241.0 246 245.5 242.5 240 242 242 [5,] 267 263 266 257 253.0 252.0 253 255.0 256.0 256 257 259 $n [1] 7 7 7 7 7 7 7 7 7 7 7 7 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 147.3661 154.1576 144.9633 121.0055 99.52664 95.91538 115.5605 108.7689 [2,] 302.6339 305.8424 299.0367 292.9945 280.47336 272.08462 268.4395 265.2311 [,9] [,10] [,11] [,12] [1,] 95.3661 91.15765 84.76891 77.76891 [2,] 250.6339 242.84235 241.23109 234.23109 $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(92, 129, 225, 259, 267, 99, 132, 230, 259, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/rcomp/tmp/535iw1280410050.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,] -4.0 -8.0 -24.0 -18.0 -6.0 1.0 -5.0 -14.0 -6.0 -8.0 -7.0 -14.0 [2,] 0.0 -3.5 -15.5 -17.5 -4.5 5.0 -4.0 -6.0 -3.5 -3.5 -2.5 -11.0 [3,] 2.0 -1.0 -10.0 -13.0 -1.0 8.0 -3.0 0.0 0.0 -1.0 0.0 -2.5 [4,] 4.5 1.0 -8.5 -9.0 -1.0 24.5 -0.5 1.5 1.5 0.5 1.5 2.0 [5,] 7.0 3.0 -2.0 -2.0 0.0 29.0 2.0 2.0 6.0 4.0 4.0 8.0 $n [1] 7 7 7 7 7 7 7 7 7 7 7 6 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] -0.6873274 -3.687327 -14.180287 -18.076063 -3.090144 -3.645085 -5.0901435 [2,] 4.6873274 1.687327 -5.819713 -7.923937 1.090144 19.645085 -0.9098565 [,8] [,9] [,10] [,11] [,12] [1,] -4.478879 -2.985919 -3.388735 -2.388735 -10.88542 [2,] 4.478879 2.985919 1.388735 2.388735 5.88542 $out [1] -10 $group [1] 5 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" "11" "12" Warning message: In bxp(list(stats = c(-4, 0, 2, 4.5, 7, -8, -3.5, -1, 1, 3, -24, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/rcomp/tmp/635iw1280410050.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,] 252.0 249.0 227.0 156.0 114 92.0 87.0 NA [2,] 254.0 251.5 230.5 170.0 121 94.5 89.0 NA [3,] 256.0 254.0 240.0 188.5 127 99.5 91.5 NA [4,] 257.5 260.0 256.0 214.5 144 104.0 96.0 NA [5,] 259.0 267.0 261.0 230.0 157 108.0 99.0 NA $n [1] 12 12 12 12 12 12 12 0 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 254.4036 250.1231 228.3693 168.2033 116.5095 95.16699 88.30725 NA [2,] 257.5964 257.8769 251.6307 208.7967 137.4905 103.83301 94.69275 NA $out [1] 74 73 69 66 $group [1] 6 6 7 7 $names [1] "1" "2" "3" "4" "5" "6" "7" NA Warning message: In bxp(list(stats = c(252, 254, 256, 257.5, 259, 249, 251.5, 254, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/rcomp/tmp/7dehz1280410050.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,] 167.2857 156.0 167.25 [2,] 173.5000 170.0 176.50 [3,] 177.5000 188.5 178.75 [4,] 188.5000 214.5 188.00 [5,] 196.2857 230.0 195.50 $n [1] 12 12 12 $conf [,1] [,2] [,3] [1,] 170.6584 168.2033 173.5048 [2,] 184.3416 208.7967 183.9952 $out numeric(0) $group numeric(0) $names [1] "mean" "median" "midrange" Warning message: In bxp(list(stats = c(167.285714285714, 173.5, 177.5, 188.5, 196.285714285714, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > > try(system("convert tmp/1seit1280410050.ps tmp/1seit1280410050.png",intern=TRUE)) character(0) > try(system("convert tmp/2seit1280410050.ps tmp/2seit1280410050.png",intern=TRUE)) character(0) > try(system("convert tmp/3seit1280410050.ps tmp/3seit1280410050.png",intern=TRUE)) character(0) > try(system("convert tmp/435iw1280410050.ps tmp/435iw1280410050.png",intern=TRUE)) character(0) > try(system("convert tmp/535iw1280410050.ps tmp/535iw1280410050.png",intern=TRUE)) character(0) > try(system("convert tmp/635iw1280410050.ps tmp/635iw1280410050.png",intern=TRUE)) character(0) > try(system("convert tmp/7dehz1280410050.ps tmp/7dehz1280410050.png",intern=TRUE)) character(0) > > > proc.time() user system elapsed 1.44 0.15 1.59