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(306,303,344,254,309,310,379,294,356,318,405,545,268,243,273,273,236,222,302,285,309,322,362,471,198,253,173,186,185,105,228,214,189,270,277,378,185,182,258,179,197,168,250,211,260,234,305,347,203,217,227,242,185,175,252,319,202,254,336,431,150,280,187,279,193,227,225,205,259,254,275,394,159,230,188,195,189,220,274) > 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] 79 > (np <- floor(n / par1)) [1] 6 > 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 6 6 6 6 6 > arr [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] 306 268 198 185 203 150 159 [2,] 303 243 253 182 217 280 230 [3,] 344 273 173 258 227 187 188 [4,] 254 273 186 179 242 279 195 [5,] 309 236 185 197 185 193 189 [6,] 310 222 105 168 175 227 220 [7,] 379 302 228 250 252 225 274 [8,] 294 285 214 211 319 205 NA [9,] 356 309 189 260 202 259 NA [10,] 318 322 270 234 254 254 NA [11,] 405 362 277 305 336 275 NA [12,] 545 471 378 347 431 394 NA > darr [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] -3 -25 55 -3 14 130 71 [2,] 41 30 -80 76 10 -93 -42 [3,] -90 0 13 -79 15 92 7 [4,] 55 -37 -1 18 -57 -86 -6 [5,] 1 -14 -80 -29 -10 34 31 [6,] 69 80 123 82 77 -2 54 [7,] -85 -17 -14 -39 67 -20 NA [8,] 62 24 -25 49 -117 54 NA [9,] -38 13 81 -26 52 -5 NA [10,] 87 40 7 71 82 21 NA [11,] 140 109 101 42 95 119 NA [12,] -277 -273 -193 -144 -281 -235 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/15wal1272475119.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/2goao1272475119.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/3goao1272475119.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/4goao1272475119.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,] 150.0 182.0 173.0 179.0 185.0 105.0 225 205.0 189.0 234 275.0 347.0 [2,] 172.0 223.5 187.5 190.5 187.0 171.5 239 211.0 202.0 254 277.0 378.0 [3,] 198.0 243.0 227.0 242.0 193.0 220.0 252 249.5 259.5 262 320.5 412.5 [4,] 235.5 266.5 265.5 263.5 216.5 224.5 288 294.0 309.0 318 362.0 471.0 [5,] 306.0 303.0 344.0 279.0 236.0 227.0 302 319.0 356.0 322 405.0 545.0 $n [1] 7 7 7 7 7 7 7 6 6 6 6 6 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 160.0788 217.3211 180.4197 198.4056 175.3831 188.3493 222.738 195.9623 [2,] 235.9212 268.6789 273.5803 285.5944 210.6169 251.6507 281.262 303.0377 [,9] [,10] [,11] [,12] [1,] 190.4815 220.7179 265.6723 352.512 [2,] 328.5185 303.2821 375.3277 472.488 $out [1] 309 310 379 $group [1] 5 6 7 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" "11" "12" Warning message: In bxp(list(stats = c(150, 172, 198, 235.5, 306, 182, 223.5, 243, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/59x991272475119.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,] -25 -93.0 -90.0 -86.0 -29.0 54.0 -39.0 -117.0 -38 7.0 95 -281 [2,] -3 -61.0 -39.5 -47.0 -21.5 61.5 -39.0 -25.0 -26 21.0 95 -277 [3,] 14 10.0 7.0 -6.0 -10.0 77.0 -18.5 36.5 4 55.5 105 -254 [4,] 63 35.5 14.0 8.5 16.0 81.0 -14.0 54.0 52 82.0 119 -193 [5,] 130 76.0 92.0 55.0 34.0 82.0 -14.0 62.0 81 87.0 140 -144 $n [1] 7 7 7 7 7 7 6 6 6 6 6 6 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] -25.41414 -47.62824 -24.94934 -39.14370 -32.39440 65.35491 -34.625807 [2,] 53.41414 67.62824 38.94934 27.14370 12.39440 88.64509 -2.374193 [,8] [,9] [,10] [,11] [,12] [1,] -14.45755 -46.31252 16.15303 89.51922 -308.1827 [2,] 87.45755 54.31252 94.84697 120.48078 -199.8173 $out [1] -80 123 -2 -85 67 42 $group [1] 5 6 6 7 7 11 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" "11" "12" Warning message: In bxp(list(stats = c(-25, -3, 14, 63, 130, -93, -61, 10, 35.5, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/69x991272475119.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] [1,] 254.0 222.0 105.0 168.0 175.0 150.0 159.0 [2,] 304.5 255.5 185.5 183.5 202.5 199.0 188.5 [3,] 314.0 279.0 206.0 222.5 234.5 240.5 195.0 [4,] 367.5 315.5 261.5 259.0 286.5 277.0 225.0 [5,] 405.0 362.0 277.0 347.0 336.0 394.0 274.0 $n [1] 12 12 12 12 12 12 7 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] 285.2653 251.6336 171.3359 188.0639 196.1870 204.9237 173.2028 [2,] 342.7347 306.3664 240.6641 256.9361 272.8130 276.0763 216.7972 $out [1] 545 471 378 431 $group [1] 1 2 3 5 $names [1] "1" "2" "3" "4" "5" "6" NA Warning message: In bxp(list(stats = c(254, 304.5, 314, 367.5, 405, 222, 255.5, 279, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/7joqt1272475119.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,] 203.8571 193.00 198.000 [2,] 221.5714 223.50 215.125 [3,] 249.3333 246.25 248.375 [4,] 274.0952 260.75 271.750 [5,] 326.6667 262.00 319.750 $n [1] 12 12 12 $conf [,1] [,2] [,3] [1,] 225.3769 229.2600 222.5480 [2,] 273.2898 263.2400 274.2020 $out [1] 427.6667 320.5000 412.5000 421.5000 $group [1] 1 2 2 3 $names [1] "mean" "median" "midrange" Warning message: In bxp(list(stats = c(203.857142857143, 221.571428571429, 249.333333333333, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > > try(system("convert tmp/15wal1272475119.ps tmp/15wal1272475119.png",intern=TRUE)) character(0) > try(system("convert tmp/2goao1272475119.ps tmp/2goao1272475119.png",intern=TRUE)) character(0) > try(system("convert tmp/3goao1272475119.ps tmp/3goao1272475119.png",intern=TRUE)) character(0) > try(system("convert tmp/4goao1272475119.ps tmp/4goao1272475119.png",intern=TRUE)) character(0) > try(system("convert tmp/59x991272475119.ps tmp/59x991272475119.png",intern=TRUE)) character(0) > try(system("convert tmp/69x991272475119.ps tmp/69x991272475119.png",intern=TRUE)) character(0) > try(system("convert tmp/7joqt1272475119.ps tmp/7joqt1272475119.png",intern=TRUE)) character(0) > > > proc.time() user system elapsed 1.158 0.899 1.587