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(8166,7102,6047,5854,5764,5209,5616,5597,6251,7024,7237,9230,9016,8201,7630,7107,6820,6082,6019,6576,8086,8323,7842,9077,10737,10176,10416,9807,9565,10439,9115,9535,10790,11340,11196,12132,12013,12692,13330,11926,11356,11221,9999,11772,12543,14176,2924,2322,15557,13381,13145,12448,12178,11836,9815,12382,12662,12767,13136,13533,17808,15892,16830,14444,15550,15092,16364,14314,15874,17846,18504,15130,19845,18137,18898,19573,17368,18938,16713,16379,19139,21461,19796,16668) > 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] 84 > (np <- floor(n / par1)) [1] 7 > 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 7 7 7 7 7 > arr [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 8166 9016 10737 12013 15557 17808 19845 NA [2,] 7102 8201 10176 12692 13381 15892 18137 NA [3,] 6047 7630 10416 13330 13145 16830 18898 NA [4,] 5854 7107 9807 11926 12448 14444 19573 NA [5,] 5764 6820 9565 11356 12178 15550 17368 NA [6,] 5209 6082 10439 11221 11836 15092 18938 NA [7,] 5616 6019 9115 9999 9815 16364 16713 NA [8,] 5597 6576 9535 11772 12382 14314 16379 NA [9,] 6251 8086 10790 12543 12662 15874 19139 NA [10,] 7024 8323 11340 14176 12767 17846 21461 NA [11,] 7237 7842 11196 2924 13136 18504 19796 NA [12,] 9230 9077 12132 2322 13533 15130 16668 NA > darr [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] -1064 -815 -561 679 -2176 -1916 -1708 NA [2,] -1055 -571 240 638 -236 938 761 NA [3,] -193 -523 -609 -1404 -697 -2386 675 NA [4,] -90 -287 -242 -570 -270 1106 -2205 NA [5,] -555 -738 874 -135 -342 -458 1570 NA [6,] 407 -63 -1324 -1222 -2021 1272 -2225 NA [7,] -19 557 420 1773 2567 -2050 -334 NA [8,] 654 1510 1255 771 280 1560 2760 NA [9,] 773 237 550 1633 105 1972 2322 NA [10,] 213 -481 -144 -11252 369 658 -1665 NA [11,] 1993 1235 936 -602 397 -3374 -3128 NA [12,] -214 1660 -119 13235 4275 4715 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/11lks1243956354.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/2a7tu1243956354.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/3q2xc1243956354.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/46nsc1243956354.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] [1,] 8166.0 7102.0 6047 5854 5764.0 5209.0 5616.0 5597.0 6251 7024.0 [2,] 9876.5 9188.5 9023 8457 8192.5 8260.5 7567.0 8055.5 9438 9831.5 [3,] 12013.0 12692.0 13145 11926 11356.0 11221.0 9815.0 11772.0 12543 12767.0 [4,] 16682.5 14636.5 15080 13446 13864.0 13464.0 13181.5 13348.0 14268 16011.0 [5,] 19845.0 18137.0 18898 19573 17368.0 18938.0 16713.0 16379.0 19139 21461.0 [,11] [,12] [1,] 2924.0 2322.0 [2,] 7539.5 9153.5 [3,] 11196.0 12132.0 [4,] 15820.0 14331.5 [5,] 19796.0 16668.0 $n [1] 7 7 7 7 7 7 7 7 7 7 7 7 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] 7948.567 9438.542 9527.857 8946.65 7969.072 8113.554 6462.111 [2,] 16077.433 15945.458 16762.143 14905.35 14742.928 14328.446 13167.889 [,8] [,9] [,10] [,11] [,12] [1,] 8611.404 9658.602 9076.702 6251.019 9039.782 [2,] 14932.596 15427.398 16457.298 16140.981 15224.218 $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(8166, 9876.5, 12013, 16682.5, 19845, 7102, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/5z2bo1243956354.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,] -2176 -1055.0 -1404.0 -570.0 -738.0 -2225.0 -2050.0 280.0 105.0 -1665 [2,] -1812 -403.5 -1050.5 -428.5 -506.5 -1672.5 -176.5 712.5 393.5 -1073 [3,] -1064 240.0 -609.0 -270.0 -342.0 -1222.0 420.0 1255.0 773.0 -144 [4,] -688 699.5 -358.0 -166.0 369.5 172.0 1165.0 1535.0 1802.5 291 [5,] 679 938.0 675.0 -90.0 1570.0 1272.0 2567.0 2760.0 2322.0 658 [,11] [,12] [1,] -3374.0 -214.0 [2,] -1865.0 -119.0 [3,] 397.0 2967.5 [4,] 1085.5 4715.0 [5,] 1993.0 4715.0 $n [1] 7 7 7 7 7 7 7 7 7 7 7 6 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] -1735.2347 -418.6938 -1022.5498 -426.7608 -865.1331 -2323.5056 -381.1222 [2,] -392.7653 898.6938 -195.4502 -113.2392 181.1331 -120.4944 1221.1222 [,8] [,9] [,10] [,11] [,12] [1,] 763.8163 -68.43207 -958.5588 -1364.991 -150.5861 [2,] 1746.1837 1614.43207 670.5588 2158.991 6085.5861 $out [1] -2386 1106 -2205 -11252 13235 $group [1] 3 4 4 10 12 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" "11" "12" Warning message: In bxp(list(stats = c(-2176, -1812, -1064, -688, 679, -1055, -403.5, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/6uxea1243956354.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] [1,] 5209.0 6019 9115.0 9999.0 11836.0 14314 16379.0 NA [2,] 5690.0 6698 9686.0 10610.0 12280.0 15111 17040.5 NA [3,] 6149.0 7736 10427.5 11849.0 12714.5 15883 18918.0 NA [4,] 7169.5 8262 10993.0 12617.5 13263.0 17319 19684.5 NA [5,] 9230.0 9077 12132.0 14176.0 13533.0 18504 21461.0 NA $n [1] 12 12 12 12 12 12 12 0 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 5474.19 7022.649 9831.369 10933.37 12266.15 14875.92 17712.05 NA [2,] 6823.81 8449.351 11023.631 12764.63 13162.85 16890.08 20123.95 NA $out [1] 2924 2322 15557 9815 $group [1] 4 4 5 5 $names [1] "1" "2" "3" "4" "5" "6" "7" NA Warning message: In bxp(list(stats = c(5209, 5690, 6149, 7169.5, 9230, 6019, 6698, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/7gt461243956354.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,] 10520.14 9815.0 10374.25 [2,] 11192.36 11288.5 10906.88 [3,] 11556.71 11969.5 11711.12 [4,] 12276.93 12617.5 11982.00 [5,] 13306.00 13145.0 13279.50 $n [1] 12 12 12 $conf [,1] [,2] [,3] [1,] 11062.03 11363.33 11220.75 [2,] 12051.39 12575.67 12201.50 $out numeric(0) $group numeric(0) $names [1] "mean" "median" "midrange" Warning message: In bxp(list(stats = c(10520.1428571429, 11192.3571428571, 11556.7142857143, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > > system("convert tmp/11lks1243956354.ps tmp/11lks1243956354.png") > system("convert tmp/2a7tu1243956354.ps tmp/2a7tu1243956354.png") > system("convert tmp/3q2xc1243956354.ps tmp/3q2xc1243956354.png") > system("convert tmp/46nsc1243956354.ps tmp/46nsc1243956354.png") > system("convert tmp/5z2bo1243956354.ps tmp/5z2bo1243956354.png") > system("convert tmp/6uxea1243956354.ps tmp/6uxea1243956354.png") > system("convert tmp/7gt461243956354.ps tmp/7gt461243956354.png") > > > proc.time() user system elapsed 1.163 0.919 1.510