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(321.935,310.215,309.030,305.333,294.735,289.351,288.225,289.648,290.155,288.301,289.148,289.741,287.595,285.226,287.816,283.519,290.304,282.166,280.041,282.500,279.913,277.793,281.229,275.363,273.547,270.601,273.338,271.917,273.985,273.911,270.798,271.115,271.344,274.525,276.663,273.784,274.027,269.160,270.491,270.846,270.333,272.599,272.764,270.674,268.175,268.351,272.482,268.714,269.419,265.518,264.101,267.179,271.322,270.157,271.296,269.907,271.244,266.844,270.911,269.829,269.285,263.018,266.680,265.814,268.457,269.508,270.223,264.676,265.521,262.971,266.003,267.722,266.433) > 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] 73 > (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 6 6 6 6 6 6 6 6 6 6 6 > arr [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] 321.935 287.595 273.547 274.027 269.419 269.285 266.433 [2,] 310.215 285.226 270.601 269.160 265.518 263.018 NA [3,] 309.030 287.816 273.338 270.491 264.101 266.680 NA [4,] 305.333 283.519 271.917 270.846 267.179 265.814 NA [5,] 294.735 290.304 273.985 270.333 271.322 268.457 NA [6,] 289.351 282.166 273.911 272.599 270.157 269.508 NA [7,] 288.225 280.041 270.798 272.764 271.296 270.223 NA [8,] 289.648 282.500 271.115 270.674 269.907 264.676 NA [9,] 290.155 279.913 271.344 268.175 271.244 265.521 NA [10,] 288.301 277.793 274.525 268.351 266.844 262.971 NA [11,] 289.148 281.229 276.663 272.482 270.911 266.003 NA [12,] 289.741 275.363 273.784 268.714 269.829 267.722 NA > darr [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] -11.720 -2.369 -2.946 -4.867 -3.901 -6.267 NA [2,] -1.185 2.590 2.737 1.331 -1.417 3.662 NA [3,] -3.697 -4.297 -1.421 0.355 3.078 -0.866 NA [4,] -10.598 6.785 2.068 -0.513 4.143 2.643 NA [5,] -5.384 -8.138 -0.074 2.266 -1.165 1.051 NA [6,] -1.126 -2.125 -3.113 0.165 1.139 0.715 NA [7,] 1.423 2.459 0.317 -2.090 -1.389 -5.547 NA [8,] 0.507 -2.587 0.229 -2.499 1.337 0.845 NA [9,] -1.854 -2.120 3.181 0.176 -4.400 -2.550 NA [10,] 0.847 3.436 2.138 4.131 4.067 3.032 NA [11,] 0.593 -5.866 -2.879 -3.768 -1.082 1.719 NA [12,] -2.146 -1.816 0.243 0.705 -0.544 -1.289 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/1j1hf1244112856.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/26fih1244112856.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/3ci7s1244112856.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/4xiq51244112856.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] [1,] 266.433 263.0180 264.1010 265.8140 268.4570 269.508 270.223 264.6760 [2,] 269.352 265.5180 266.6800 267.1790 270.3330 270.157 270.798 269.9070 [3,] 273.547 269.8805 271.9145 271.3815 272.6535 273.255 272.030 270.8945 [4,] 280.811 285.2260 287.8160 283.5190 290.3040 282.166 280.041 282.5000 [5,] 287.595 310.2150 309.0300 305.3330 294.7350 289.351 288.225 289.6480 [,9] [,10] [,11] [,12] [1,] 265.521 262.971 266.0030 267.7220 [2,] 268.175 266.844 270.9110 268.7140 [3,] 271.294 271.438 274.5725 271.8065 [4,] 279.913 277.793 281.2290 275.3630 [5,] 290.155 288.301 289.1480 275.3630 $n [1] 7 6 6 6 6 6 6 6 6 6 6 6 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 266.7039 257.1682 258.2811 260.8417 259.7716 265.5088 266.0680 262.7716 [2,] 280.3901 282.5928 285.5479 281.9213 285.5354 281.0012 277.9920 279.0174 [,9] [,10] [,11] [,12] [1,] 263.7226 264.3755 267.9171 267.5177 [2,] 278.8654 278.5005 281.2279 276.0953 $out [1] 321.935 289.741 $group [1] 1 12 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" "11" "12" Warning message: In bxp(list(stats = c(266.433, 269.352, 273.547, 280.811, 287.595, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/51tx81244112856.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] [1,] -6.267 -1.4170 -4.2970 -0.5130 -8.1380 -3.1130 -5.547 -2.587 -4.400 0.847 [2,] -6.267 -1.1850 -3.6970 -0.5130 -5.3840 -2.1250 -2.090 -2.499 -2.550 2.138 [3,] -4.384 1.9605 -1.1435 2.3555 -0.6195 -0.4805 -0.536 0.368 -1.987 3.234 [4,] -2.946 2.7370 0.3550 4.1430 1.0510 0.7150 1.423 0.845 0.176 4.067 [5,] -2.369 3.6620 3.0780 6.7850 2.2660 1.1390 2.459 1.337 3.181 4.131 [,11] [,12] [1,] -5.8660 -2.1460 [2,] -3.7680 -1.8160 [3,] -1.9805 -0.9165 [4,] 0.5930 0.2430 [5,] 1.7190 0.7050 $n [1] 6 6 6 6 6 6 6 6 6 6 6 6 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] -6.526152 -0.5693167 -3.757171 -0.6477704 -4.770283 -2.312392 -2.801998 [2,] -2.241848 4.4903167 1.470171 5.3587704 3.531283 1.351392 1.729998 [,8] [,9] [,10] [,11] [,12] [1,] -1.788988 -3.7453580 1.989733 -4.7934859 -2.2446215 [2,] 2.524988 -0.2286420 4.478267 0.8324859 0.4116215 $out [1] -11.720 -10.598 $group [1] 1 4 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" "11" "12" Warning message: In bxp(list(stats = c(-6.26700000000005, -6.26700000000005, -4.38399999999999, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/665pj1244112856.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,] 288.2250 275.3630 270.6010 268.1750 264.1010 262.9710 266.433 [2,] 289.2495 279.9770 271.2295 268.9370 267.0115 265.0985 266.433 [3,] 289.9480 282.3330 273.4425 270.5825 269.8680 266.3415 266.433 [4,] 307.1815 286.4105 273.9480 272.5405 271.0775 268.8710 266.433 [5,] 321.9350 290.3040 276.6630 274.0270 271.3220 270.2230 266.433 $n [1] 12 12 12 12 12 12 1 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] 281.7691 279.3986 272.2026 268.9389 268.0135 264.6208 266.433 [2,] 298.1269 285.2674 274.6824 272.2261 271.7225 268.0622 266.433 $out numeric(0) $group numeric(0) $names [1] "1" "2" "3" "4" "5" "6" NA Warning message: In bxp(list(stats = c(288.225, 289.2495, 289.948, 307.1815, 321.935, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/7lj911244112856.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,] 273.1308 269.8805 271.9805 [2,] 274.5727 271.3377 273.6778 [3,] 276.1773 271.8605 274.7242 [4,] 277.8120 272.9543 275.5652 [5,] 280.3201 274.5725 275.9146 $n [1] 12 12 12 $conf [,1] [,2] [,3] [1,] 274.6999 271.1232 273.8633 [2,] 277.6548 272.5978 275.5851 $out [1] 278.4022 $group [1] 3 $names [1] "mean" "median" "midrange" Warning message: In bxp(list(stats = c(273.130833333333, 274.572666666667, 276.177333333333, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > > system("convert tmp/1j1hf1244112856.ps tmp/1j1hf1244112856.png") > system("convert tmp/26fih1244112856.ps tmp/26fih1244112856.png") > system("convert tmp/3ci7s1244112856.ps tmp/3ci7s1244112856.png") > system("convert tmp/4xiq51244112856.ps tmp/4xiq51244112856.png") > system("convert tmp/51tx81244112856.ps tmp/51tx81244112856.png") > system("convert tmp/665pj1244112856.ps tmp/665pj1244112856.png") > system("convert tmp/7lj911244112856.ps tmp/7lj911244112856.png") > > > proc.time() user system elapsed 1.204 0.963 1.549