R version 2.8.0 (2008-10-20) Copyright (C) 2008 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. Natural language support but running in an English locale 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(239,238,237,235,255,254,239,229,230,230,231,233,239,236,231,235,253,257,236,226,226,221,217,219,225,226,225,229,242,252,233,232,225,218,209,211,220,225,215,222,238,246,226,230,222,214,208,203,208,212,199,200,223,225,203,207,195,198,193,189,184,188,180,186,215,212,191,190,180,190,189,181,174,179,165,185,211,209,183,178,170,182,195,188,175,176,162,193,211,207,179,176,167,175,190,173,159,159,147,181,196,199,171,170,156,164,178,155,138,142,113,148,156,158,141,139,119,120,125,102) > 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] 120 > (np <- floor(n / par1)) [1] 10 > 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] 10 10 10 10 10 10 10 10 10 10 10 10 > arr [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [,9] [,10] [,11] [1,] 239 239 225 220 208 184 174 175 159 138 NA [2,] 238 236 226 225 212 188 179 176 159 142 NA [3,] 237 231 225 215 199 180 165 162 147 113 NA [4,] 235 235 229 222 200 186 185 193 181 148 NA [5,] 255 253 242 238 223 215 211 211 196 156 NA [6,] 254 257 252 246 225 212 209 207 199 158 NA [7,] 239 236 233 226 203 191 183 179 171 141 NA [8,] 229 226 232 230 207 190 178 176 170 139 NA [9,] 230 226 225 222 195 180 170 167 156 119 NA [10,] 230 221 218 214 198 190 182 175 164 120 NA [11,] 231 217 209 208 193 189 195 190 178 125 NA [12,] 233 219 211 203 189 181 188 173 155 102 NA > darr [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [,9] [,10] [,11] [1,] -1 -3 1 5 4 4 5 1 0 4 NA [2,] -1 -5 -1 -10 -13 -8 -14 -14 -12 -29 NA [3,] -2 4 4 7 1 6 20 31 34 35 NA [4,] 20 18 13 16 23 29 26 18 15 8 NA [5,] -1 4 10 8 2 -3 -2 -4 3 2 NA [6,] -15 -21 -19 -20 -22 -21 -26 -28 -28 -17 NA [7,] -10 -10 -1 4 4 -1 -5 -3 -1 -2 NA [8,] 1 0 -7 -8 -12 -10 -8 -9 -14 -20 NA [9,] 0 -5 -7 -8 3 10 12 8 8 1 NA [10,] 1 -4 -9 -6 -5 -1 13 15 14 5 NA [11,] 2 2 2 -5 -4 -8 -7 -17 -23 -23 NA [12,] 6 6 9 5 -5 -7 -13 -14 -17 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/freestat/rcomp/tmp/1c1cr1281092689.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/freestat/rcomp/tmp/2c1cr1281092689.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/freestat/rcomp/tmp/35tbc1281092689.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/freestat/rcomp/tmp/45tbc1281092689.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,] 138 142 113.0 148.0 196 158.0 141 139.0 119.0 120 178 155.0 [2,] 174 176 162.0 185.0 211 207.0 179 176.0 167.0 175 189 173.0 [3,] 196 200 189.5 196.5 219 218.5 197 198.5 187.5 194 194 188.5 [4,] 225 226 225.0 229.0 242 252.0 233 229.0 225.0 218 209 211.0 [5,] 239 238 237.0 235.0 255 257.0 239 232.0 230.0 230 231 233.0 $n [1] 10 10 10 10 10 10 10 10 10 10 10 10 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 170.5184 175.018 158.0227 174.5158 203.5112 196.0162 170.0194 172.0191 [2,] 221.4816 224.982 220.9773 218.4842 234.4888 240.9838 223.9806 224.9809 [,9] [,10] [,11] [,12] [1,] 158.5209 172.5155 184.0072 169.5137 [2,] 216.4791 215.4845 203.9928 207.4863 $out [1] 156 125 102 $group [1] 5 11 12 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" "11" "12" Warning message: In bxp(list(stats = c(138, 174, 196, 225, 239, 142, 176, 200, 226, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/freestat/rcomp/tmp/55tbc1281092689.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,] -3.0 -14 -2.0 8 -4 -28 -10.0 -14.0 -8 -9 -23 -17 [2,] 0.0 -14 4.0 15 -2 -26 -5.0 -12.0 -5 -5 -17 -13 [3,] 2.5 -11 6.5 18 2 -21 -1.5 -8.5 2 0 -6 -5 [4,] 4.0 -5 31.0 23 4 -19 -1.0 -7.0 8 13 2 6 [5,] 5.0 -1 35.0 29 10 -15 4.0 0.0 12 15 2 9 $n [1] 10 10 10 10 10 10 10 10 10 10 10 9 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] 0.5014405 -15.496759 -6.990276 14.00288 -0.9978392 -24.49748 -3.4985595 [2,] 4.4985595 -6.503241 19.990276 21.99712 4.9978392 -17.50252 0.4985595 [,8] [,9] [,10] [,11] [,12] [1,] -10.998199 -4.495318 -8.993518 -15.493158 -15.006667 [2,] -6.001801 8.495318 8.993518 3.493158 5.006667 $out [1] -29 1 -20 $group [1] 2 8 8 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" "11" "12" Warning message: In bxp(list(stats = c(-3, 0, 2.5, 4, 5, -14, -14, -11, -5, -1, -2, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/freestat/rcomp/tmp/6g2sx1281092689.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] [,9] [,10] [,11] [1,] 229.0 217.0 209.0 203.0 189.0 180.0 165.0 162.0 147.0 102.0 NA [2,] 230.5 223.5 221.5 214.5 196.5 182.5 176.0 174.0 157.5 119.5 NA [3,] 236.0 233.0 225.5 222.0 201.5 188.5 182.5 176.0 167.0 138.5 NA [4,] 239.0 237.5 232.5 228.0 210.0 190.5 191.5 191.5 179.5 145.0 NA [5,] 239.0 257.0 242.0 246.0 225.0 191.0 211.0 211.0 199.0 158.0 NA $n [1] 12 12 12 12 12 12 12 12 12 12 0 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 232.1231 226.6145 220.4828 215.8426 195.3426 184.8511 175.4303 168.0181 [2,] 239.8769 239.3855 230.5172 228.1574 207.6574 192.1489 189.5697 183.9819 [,9] [,10] [,11] [1,] 156.9657 126.8693 NA [2,] 177.0343 150.1307 NA $out [1] 255 254 252 215 212 $group [1] 1 1 3 6 6 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" NA Warning message: In bxp(list(stats = c(229, 230.5, 236, 239, 239, 217, 223.5, 233, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/freestat/rcomp/tmp/7g2sx1281092689.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,] 185.4 187.50 192.0000 [2,] 190.1 191.75 196.4375 [3,] 196.9 196.25 200.1250 [4,] 200.8 199.25 205.9375 [5,] 201.4 200.00 206.2500 $n [1] 12 12 12 $conf [,1] [,2] [,3] [1,] 192.0197 192.8292 195.792 [2,] 201.7803 199.6708 204.458 $out [1] 220.0 221.9 219.0 218.5 226.0 229.0 $group [1] 1 1 2 2 3 3 $names [1] "mean" "median" "midrange" Warning message: In bxp(list(stats = c(185.4, 190.1, 196.9, 200.8, 201.4, 187.5, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > > try(system("convert tmp/1c1cr1281092689.ps tmp/1c1cr1281092689.png",intern=TRUE)) character(0) > try(system("convert tmp/2c1cr1281092689.ps tmp/2c1cr1281092689.png",intern=TRUE)) character(0) > try(system("convert tmp/35tbc1281092689.ps tmp/35tbc1281092689.png",intern=TRUE)) character(0) > try(system("convert tmp/45tbc1281092689.ps tmp/45tbc1281092689.png",intern=TRUE)) character(0) > try(system("convert tmp/55tbc1281092689.ps tmp/55tbc1281092689.png",intern=TRUE)) character(0) > try(system("convert tmp/6g2sx1281092689.ps tmp/6g2sx1281092689.png",intern=TRUE)) character(0) > try(system("convert tmp/7g2sx1281092689.ps tmp/7g2sx1281092689.png",intern=TRUE)) character(0) > > > proc.time() user system elapsed 2.003 1.518 2.447