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(291,289,292,283,283,274,281,271,277,271,272,282,281,284,282,279,278,280,287,287,283,314,315,306,309,307,302,297,303,304,307,310,300,295,300,300,297,291,288,290,293,282,287,275,282,282,277,275,284,280,270,265,255,246,254,258,263,243,230,236,249,236,231,229,227,227,233,232,227,217,217,220) > 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] 72 > (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] 6 6 6 6 6 6 6 6 6 6 6 6 > arr [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] 291 281 309 297 284 249 NA [2,] 289 284 307 291 280 236 NA [3,] 292 282 302 288 270 231 NA [4,] 283 279 297 290 265 229 NA [5,] 283 278 303 293 255 227 NA [6,] 274 280 304 282 246 227 NA [7,] 281 287 307 287 254 233 NA [8,] 271 287 310 275 258 232 NA [9,] 277 283 300 282 263 227 NA [10,] 271 314 295 282 243 217 NA [11,] 272 315 300 277 230 217 NA [12,] 282 306 300 275 236 220 NA > darr [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] -2 3 -2 -6 -4 -13 NA [2,] 3 -2 -5 -3 -10 -5 NA [3,] -9 -3 -5 2 -5 -2 NA [4,] 0 -1 6 3 -10 -2 NA [5,] -9 2 1 -11 -9 0 NA [6,] 7 7 3 5 8 6 NA [7,] -10 0 3 -12 4 -1 NA [8,] 6 -4 -10 7 5 -5 NA [9,] -6 31 -5 0 -20 -10 NA [10,] 1 1 5 -5 -13 0 NA [11,] 10 -9 0 -2 6 3 NA [12,] -1 3 -3 9 13 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/1lj0i1258124815.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/2wh2r1258124815.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/3q2001258124815.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/4rac01258124815.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,] 281.0 280.0 270 229 227.0 227 233 232 263.0 217.0 217.0 220.0 [2,] 281.0 280.0 270 265 255.0 246 254 258 263.0 243.0 230.0 236.0 [3,] 287.5 286.5 285 281 280.5 277 284 273 279.5 276.5 274.5 278.5 [4,] 297.0 291.0 292 290 293.0 282 287 287 283.0 295.0 300.0 300.0 [5,] 309.0 307.0 302 297 303.0 304 307 310 300.0 314.0 315.0 306.0 $n [1] 6 6 6 6 6 6 6 6 6 6 6 6 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 277.1795 279.4046 270.8093 264.8742 255.9888 253.7788 262.7139 254.2941 [2,] 297.8205 293.5954 299.1907 297.1258 305.0112 300.2212 305.2861 291.7059 [,9] [,10] [,11] [,12] [1,] 266.5994 242.9583 229.3477 237.2179 [2,] 292.4006 310.0417 319.6523 319.7821 $out [1] 249 236 231 227 $group [1] 1 2 3 9 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" "11" "12" Warning message: In bxp(list(stats = c(281, 281, 287.5, 297, 309, 280, 280, 286.5, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/5tik41258124815.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,] -6 -5 -9 -2.0 -11.0 3.0 -12.0 -10.0 -20.0 -13.0 -9.0 -3 [2,] -6 -5 -5 -2.0 -9.0 5.0 -10.0 -5.0 -10.0 -5.0 -2.0 -1 [3,] -3 -4 -4 -0.5 -4.5 6.5 -0.5 0.5 -5.5 0.5 1.5 3 [4,] -2 -2 -2 3.0 1.0 7.0 3.0 6.0 0.0 1.0 6.0 9 [5,] 3 -2 2 6.0 2.0 8.0 4.0 7.0 0.0 5.0 10.0 13 $n [1] 6 6 6 6 6 6 6 6 6 6 6 5 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] -5.5801292 -5.935097 -5.935097 -3.725161 -10.950323 5.209935 -8.88542 [2,] -0.4198708 -2.064903 -2.064903 2.725161 1.950323 7.790065 7.88542 [,8] [,9] [,10] [,11] [,12] [1,] -6.595355 -11.950323 -3.370194 -3.660258 -4.065975 [2,] 7.595355 0.950323 4.370194 6.660258 10.065975 $out [1] -13 3 -10 -10 31 $group [1] 1 2 2 4 9 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" "11" "12" Warning message: In bxp(list(stats = c(-6, -6, -3, -2, 3, -5, -5, -4, -2, -2, -9, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/6mfld1258124815.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,] 271.0 278.0 295.0 275.0 230.0 217.0 NA [2,] 273.0 280.5 300.0 279.5 244.5 223.5 NA [3,] 281.5 283.5 302.5 284.5 256.5 228.0 NA [4,] 286.0 296.5 307.0 290.5 267.5 232.5 NA [5,] 292.0 315.0 310.0 297.0 284.0 236.0 NA $n [1] 12 12 12 12 12 12 0 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] 275.5706 276.2023 299.3073 279.4828 246.0095 223.8950 NA [2,] 287.4294 290.7977 305.6927 289.5172 266.9905 232.1050 NA $out [1] 249 $group [1] 6 $names [1] "1" "2" "3" "4" "5" "6" NA Warning message: In bxp(list(stats = c(271, 273, 281.5, 286, 292, 278, 280.5, 283.5, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/72ug21258124815.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,] 268.5000 273.00 267.2500 [2,] 270.0833 276.75 270.7500 [3,] 272.6667 280.00 274.2500 [4,] 276.1667 284.50 280.1875 [5,] 285.1667 287.50 288.6250 $n [1] 12 12 12 $conf [,1] [,2] [,3] [1,] 269.8920 276.4652 269.9455 [2,] 275.4413 283.5348 278.5545 $out numeric(0) $group numeric(0) $names [1] "mean" "median" "midrange" Warning message: In bxp(list(stats = c(268.5, 270.083333333333, 272.666666666667, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > > system("convert tmp/1lj0i1258124815.ps tmp/1lj0i1258124815.png") > system("convert tmp/2wh2r1258124815.ps tmp/2wh2r1258124815.png") > system("convert tmp/3q2001258124815.ps tmp/3q2001258124815.png") > system("convert tmp/4rac01258124815.ps tmp/4rac01258124815.png") > system("convert tmp/5tik41258124815.ps tmp/5tik41258124815.png") > system("convert tmp/6mfld1258124815.ps tmp/6mfld1258124815.png") > system("convert tmp/72ug21258124815.ps tmp/72ug21258124815.png") > > > proc.time() user system elapsed 1.222 0.958 1.511