R version 2.7.2 (2008-08-25) Copyright (C) 2008 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(124,113,109,109,106,101,98,93,91,122,139,140,132,117,114,113,110,107,103,98,98,137,148,147,139,130,128,127,123,118,114,108,111,151,159,158,148,138,137,136,133,126,120,114,116,153,162,161,149,139,135,130,127,122,117,112,113,149,157,157,147,137,132,125,123,117,114,111,112,144,150,149,134,123,116,117,111,105,102,95,93,124,130,124,115,106,105,105,101,95,93,84,87,116,120,117,109) > 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] 97 > (np <- floor(n / par1)) [1] 8 > 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] 9 8 8 8 8 8 8 8 8 8 8 8 > arr [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [,9] [1,] 124 132 139 148 149 147 134 115 109 [2,] 113 117 130 138 139 137 123 106 NA [3,] 109 114 128 137 135 132 116 105 NA [4,] 109 113 127 136 130 125 117 105 NA [5,] 106 110 123 133 127 123 111 101 NA [6,] 101 107 118 126 122 117 105 95 NA [7,] 98 103 114 120 117 114 102 93 NA [8,] 93 98 108 114 112 111 95 84 NA [9,] 91 98 111 116 113 112 93 87 NA [10,] 122 137 151 153 149 144 124 116 NA [11,] 139 148 159 162 157 150 130 120 NA [12,] 140 147 158 161 157 149 124 117 NA > darr [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [,9] [1,] -11 -15 -9 -10 -10 -10 -11 -9 NA [2,] -4 -3 -2 -1 -4 -5 -7 -1 NA [3,] 0 -1 -1 -1 -5 -7 1 0 NA [4,] -3 -3 -4 -3 -3 -2 -6 -4 NA [5,] -5 -3 -5 -7 -5 -6 -6 -6 NA [6,] -3 -4 -4 -6 -5 -3 -3 -2 NA [7,] -5 -5 -6 -6 -5 -3 -7 -9 NA [8,] -2 0 3 2 1 1 -2 3 NA [9,] 31 39 40 37 36 32 31 29 NA [10,] 17 11 8 9 8 6 6 4 NA [11,] 1 -1 -1 -1 0 -1 -6 -3 NA [12,] -8 -8 -10 -12 -10 -15 -9 -8 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/18hrq1225978107.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/22jlv1225978107.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/3n8711225978107.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/4a1h51225978107.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,] 109 106.0 105.0 105.0 101 95 93.0 84.0 87.0 116.0 120.0 117.0 [2,] 124 115.0 111.5 111.0 108 103 100.0 94.0 92.0 123.0 134.5 132.0 [3,] 134 126.5 122.0 121.0 117 112 108.5 103.0 104.5 140.5 149.0 148.0 [4,] 147 137.5 133.5 128.5 125 120 115.5 111.5 112.5 150.0 158.0 157.5 [5,] 149 139.0 137.0 136.0 133 126 120.0 114.0 116.0 153.0 162.0 161.0 $n [1] 9 8 8 8 8 8 8 8 8 8 8 8 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 121.8867 113.9312 109.7105 111.2242 107.5036 102.5036 99.84148 93.22425 [2,] 146.1133 139.0688 134.2895 130.7758 126.4964 121.4964 117.15852 112.77575 [,9] [,10] [,11] [,12] [1,] 93.0484 125.4174 135.8726 133.7553 [2,] 115.9516 155.5826 162.1274 162.2447 $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(109, 124, 134, 147, 149, 106, 115, 126.5, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/5ayfu1225978107.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,] -11.0 -7.0 -7 -4 -7.0 -6.0 -7.0 -2.0 29 4 -3.0 -15.0 [2,] -11.0 -4.5 -3 -4 -6.0 -4.5 -6.5 -1.0 31 6 -2.0 -11.0 [3,] -10.0 -3.5 -1 -3 -5.5 -3.5 -5.5 1.0 34 8 -1.0 -9.5 [4,] -9.5 -1.5 0 -3 -5.0 -3.0 -5.0 2.5 38 10 -0.5 -8.0 [5,] -9.0 -1.0 1 -2 -5.0 -2.0 -3.0 3.0 40 11 1.0 -8.0 $n [1] 8 8 8 8 8 8 8 8 8 8 8 8 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] -10.837922 -5.175843 -2.6758431 -3.558614 -6.058614 -4.337922 -6.337922 [2,] -9.162078 -1.824157 0.6758431 -2.441386 -4.941386 -2.662078 -4.662078 [,8] [,9] [,10] [,11] [,12] [1,] -0.9551502 30.0897 5.765543 -1.8379215 -11.175843 [2,] 2.9551502 37.9103 10.234457 -0.1620785 -7.824157 $out [1] -15 -6 -3 -9 17 -6 $group [1] 1 4 5 7 10 11 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" "11" "12" Warning message: In bxp(list(stats = c(-11, -11, -10, -9.5, -9, -7, -4.5, -3.5, -1.5, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/603061225978107.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] [,9] [1,] 91.0 98.0 108.0 114.0 112.0 111.0 93.0 84.0 109 [2,] 99.5 105.0 116.0 123.0 119.5 115.5 103.5 94.0 109 [3,] 109.0 113.5 127.5 136.5 132.5 128.5 116.5 105.0 109 [4,] 123.0 134.5 145.0 150.5 149.0 145.5 124.0 115.5 109 [5,] 140.0 148.0 159.0 162.0 157.0 150.0 134.0 120.0 109 $n [1] 12 12 12 12 12 12 12 12 1 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 98.2815 100.0449 114.2729 123.9571 119.0449 114.8168 107.1498 95.1937 [2,] 119.7185 126.9551 140.7271 149.0429 145.9551 142.1832 125.8502 114.8063 [,9] [1,] 109 [2,] 109 $out numeric(0) $group numeric(0) $names [1] "1" "2" "3" "4" "5" "6" "7" "8" NA Warning message: In bxp(list(stats = c(91, 99.5, 109, 123, 140, 98, 105, 113.5, 134.5, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/72vzw1225978107.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,] 101.875 103.00 102.3750 [2,] 109.500 110.25 109.6875 [3,] 121.125 121.50 121.3125 [4,] 135.000 137.25 136.0000 [5,] 145.625 149.00 147.1250 $n [1] 12 12 12 $conf [,1] [,2] [,3] [1,] 109.4943 109.1851 109.3112 [2,] 132.7557 133.8149 133.3138 $out numeric(0) $group numeric(0) $names [1] "mean" "median" "midrange" Warning message: In bxp(list(stats = c(101.875, 109.5, 121.125, 135, 145.625, 103, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > > system("convert tmp/18hrq1225978107.ps tmp/18hrq1225978107.png") > system("convert tmp/22jlv1225978107.ps tmp/22jlv1225978107.png") > system("convert tmp/3n8711225978107.ps tmp/3n8711225978107.png") > system("convert tmp/4a1h51225978107.ps tmp/4a1h51225978107.png") > system("convert tmp/5ayfu1225978107.ps tmp/5ayfu1225978107.png") > system("convert tmp/603061225978107.ps tmp/603061225978107.png") > system("convert tmp/72vzw1225978107.ps tmp/72vzw1225978107.png") > > > proc.time() user system elapsed 1.387 0.956 1.673