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(517.009,509.933,509.127,500.857,506.971,569.323,579.714,577.992,565.464,547.344,554.788,562.325,560.854,555.332,543.599,536.662,542.722,593.530,610.763,612.613,611.324,594.167,595.454,590.865,589.379,584.428,573.100,567.456,569.028,620.735,628.884,628.232,612.117,595.404,597.141,593.408,590.072,579.799,574.205,572.775,572.942,619.567,625.809,619.916,587.625,565.742,557.274,560.576,548.854,531.673,525.919,511.038,498.662,555.362,564.591,541.657,527.070,509.846,514.258,516.922,507.561,492.622,490.243,469.357,477.580,528.379,533.590,517.945,506.174,501.866,516.141,528.222,532.638,536.322,536.535,523.597,536.214,586.570,596.594) > 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,] 517.009 560.854 589.379 590.072 548.854 507.561 532.638 [2,] 509.933 555.332 584.428 579.799 531.673 492.622 536.322 [3,] 509.127 543.599 573.100 574.205 525.919 490.243 536.535 [4,] 500.857 536.662 567.456 572.775 511.038 469.357 523.597 [5,] 506.971 542.722 569.028 572.942 498.662 477.580 536.214 [6,] 569.323 593.530 620.735 619.567 555.362 528.379 586.570 [7,] 579.714 610.763 628.884 625.809 564.591 533.590 596.594 [8,] 577.992 612.613 628.232 619.916 541.657 517.945 NA [9,] 565.464 611.324 612.117 587.625 527.070 506.174 NA [10,] 547.344 594.167 595.404 565.742 509.846 501.866 NA [11,] 554.788 595.454 597.141 557.274 514.258 516.141 NA [12,] 562.325 590.865 593.408 560.576 516.922 528.222 NA > darr [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] -7.076 -5.522 -4.951 -10.273 -17.181 -14.939 3.684 [2,] -0.806 -11.733 -11.328 -5.594 -5.754 -2.379 0.213 [3,] -8.270 -6.937 -5.644 -1.430 -14.881 -20.886 -12.938 [4,] 6.114 6.060 1.572 0.167 -12.376 8.223 12.617 [5,] 62.352 50.808 51.707 46.625 56.700 50.799 50.356 [6,] 10.391 17.233 8.149 6.242 9.229 5.211 10.024 [7,] -1.722 1.850 -0.652 -5.893 -22.934 -15.645 NA [8,] -12.528 -1.289 -16.115 -32.291 -14.587 -11.771 NA [9,] -18.120 -17.157 -16.713 -21.883 -17.224 -4.308 NA [10,] 7.444 1.287 1.737 -8.468 4.412 14.275 NA [11,] 7.537 -4.589 -3.733 3.302 2.664 12.081 NA [12,] -1.471 -1.486 -3.336 -11.722 -9.361 4.416 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/1y5aa1261604626.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/2gqnq1261604626.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/33jxl1261604626.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/431ia1261604626.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,] 507.5610 492.6220 490.2430 469.3570 477.5800 528.3790 533.5900 517.9450 [2,] 524.8235 520.8030 517.5230 505.9475 502.8165 562.3425 572.1525 541.6570 [3,] 548.8540 536.3220 536.5350 523.5970 536.2140 586.5700 596.5940 595.3025 [4,] 575.1165 567.5655 558.3495 552.0590 555.8750 606.5485 618.2860 619.9160 [5,] 590.0720 584.4280 574.2050 572.7750 572.9420 620.7350 628.8840 628.2320 [,9] [,10] [,11] [,12] [1,] 506.1740 501.866 514.258 516.9220 [2,] 527.0700 509.846 516.141 528.2220 [3,] 576.5445 556.543 556.031 561.4505 [4,] 611.3240 594.167 595.454 590.8650 [5,] 612.1170 595.404 597.141 593.4080 $n [1] 7 7 7 7 7 7 7 6 6 6 6 6 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 518.8198 508.3962 512.1541 496.060 504.5283 560.1709 569.0438 544.8229 [2,] 578.8882 564.2478 560.9159 551.134 567.8997 612.9691 624.1442 645.7821 [,9] [,10] [,11] [,12] [1,] 522.198 502.1532 504.8716 521.0437 [2,] 630.891 610.9328 607.1904 601.8573 $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(507.561, 524.8235, 548.854, 575.1165, 590.072, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/559qw1261604626.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] [1,] -17.1810 -11.7330 -20.8860 0.1670 46.6250 5.2110 -22.9340 -16.1150 [2,] -12.6060 -8.5410 -13.9095 0.8695 50.5775 7.1955 -15.6450 -16.1150 [3,] -7.0760 -5.5940 -8.2700 6.0600 50.8080 9.2290 -3.8075 -13.5575 [4,] -5.2365 -1.5925 -6.2905 7.1685 54.2035 10.2075 -0.6520 -11.7710 [5,] 3.6840 0.2130 -1.4300 12.6170 56.7000 10.3910 1.8500 -11.7710 [,9] [,10] [,11] [,12] [1,] -18.1200 1.2870 -4.589 -11.722 [2,] -18.1200 1.2870 -3.733 -9.361 [3,] -17.1905 3.0745 2.983 -2.411 [4,] -16.7130 7.4440 7.537 -1.471 [5,] -16.7130 14.2750 12.081 4.416 $n [1] 7 7 7 7 7 7 6 6 6 6 6 6 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] -11.476947 -9.743532 -12.819944 2.298339 48.64261 7.430282 -13.478469 [2,] -2.675053 -1.444468 -3.720056 9.821661 52.97339 11.027718 5.863469 [,8] [,9] [,10] [,11] [,12] [1,] -16.35952 -18.09806 -0.8969639 -4.286514 -7.500305 [2,] -10.75548 -16.28294 7.0459639 10.252514 2.678305 $out [1] -12.376 62.352 17.233 -1.289 -32.291 -21.883 -4.308 -8.468 $group [1] 4 5 6 8 8 9 9 10 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" "11" "12" Warning message: In bxp(list(stats = c(-17.1810000000000, -12.606, -7.07600000000002, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/6c8a31261604626.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,] 500.8570 536.6620 567.456 557.2740 498.6620 469.3570 523.5970 [2,] 509.5300 549.4655 578.764 569.2585 512.6480 491.4325 534.4260 [3,] 551.0660 592.1975 594.406 577.0020 526.4945 506.8675 536.3220 [4,] 567.3935 603.1085 616.426 604.8195 545.2555 523.0835 561.5525 [5,] 579.7140 612.6130 628.884 625.8090 564.5910 533.5900 596.5940 $n [1] 12 12 12 12 12 12 7 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] 524.6741 567.7306 577.2281 560.7824 511.622 492.4313 520.1225 [2,] 577.4579 616.6644 611.5839 593.2216 541.367 521.3037 552.5215 $out numeric(0) $group numeric(0) $names [1] "1" "2" "3" "4" "5" "6" NA Warning message: In bxp(list(stats = c(500.857, 509.53, 551.066, 567.3935, 579.714, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/7iht71261604626.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,] 525.9631 523.5970 529.0032 [2,] 538.7741 536.4285 541.0602 [3,] 554.1187 556.2870 554.4982 [4,] 575.1097 581.5573 577.7247 [5,] 591.4207 596.5940 595.2193 $n [1] 12 12 12 $conf [,1] [,2] [,3] [1,] 537.5458 535.7035 537.7754 [2,] 570.6917 576.8705 571.2211 $out numeric(0) $group numeric(0) $names [1] "mean" "median" "midrange" Warning message: In bxp(list(stats = c(525.963142857143, 538.774071428571, 554.11875, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > > try(system("convert tmp/1y5aa1261604626.ps tmp/1y5aa1261604626.png",intern=TRUE)) character(0) > try(system("convert tmp/2gqnq1261604626.ps tmp/2gqnq1261604626.png",intern=TRUE)) character(0) > try(system("convert tmp/33jxl1261604626.ps tmp/33jxl1261604626.png",intern=TRUE)) character(0) > try(system("convert tmp/431ia1261604626.ps tmp/431ia1261604626.png",intern=TRUE)) character(0) > try(system("convert tmp/559qw1261604626.ps tmp/559qw1261604626.png",intern=TRUE)) character(0) > try(system("convert tmp/6c8a31261604626.ps tmp/6c8a31261604626.png",intern=TRUE)) character(0) > try(system("convert tmp/7iht71261604626.ps tmp/7iht71261604626.png",intern=TRUE)) character(0) > > > proc.time() user system elapsed 1.208 0.974 1.794