R version 2.11.1 (2010-05-31) Copyright (C) 2010 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(73,72,71,69,89,88,73,63,64,64,65,67,69,71,70,72,88,83,76,70,75,71,75,81,87,90,80,85,105,104,98,94,107,112,121,118,120,122,109,112,132,127,116,113,123,125,137,127,123,128,114,120,143,135,119,117,132,139,158,141,139,150,142,149,166,150,139,140,158,169,186,177,175,187,176,185,204,188,171,171,182,185,200,192,185,195,190,195,213,194,171,171,186,182,193,185,172,185,179,182,193,173,155,164,188,186,200,185,173,190,190,193,195,178,163,165,188,182,200,177) > 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] 120 > (np <- floor(n / par1)) [1] 10 > 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] 10 10 10 10 10 10 10 10 10 10 10 10 > arr [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [,9] [,10] [,11] [1,] 73 69 87 120 123 139 175 185 172 173 NA [2,] 72 71 90 122 128 150 187 195 185 190 NA [3,] 71 70 80 109 114 142 176 190 179 190 NA [4,] 69 72 85 112 120 149 185 195 182 193 NA [5,] 89 88 105 132 143 166 204 213 193 195 NA [6,] 88 83 104 127 135 150 188 194 173 178 NA [7,] 73 76 98 116 119 139 171 171 155 163 NA [8,] 63 70 94 113 117 140 171 171 164 165 NA [9,] 64 75 107 123 132 158 182 186 188 188 NA [10,] 64 71 112 125 139 169 185 182 186 182 NA [11,] 65 75 121 137 158 186 200 193 200 200 NA [12,] 67 81 118 127 141 177 192 185 185 177 NA > darr [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [,9] [,10] [,11] [1,] -1 2 3 2 5 11 12 10 13 17 NA [2,] -1 -1 -10 -13 -14 -8 -11 -5 -6 0 NA [3,] -2 2 5 3 6 7 9 5 3 3 NA [4,] 20 16 20 20 23 17 19 18 11 2 NA [5,] -1 -5 -1 -5 -8 -16 -16 -19 -20 -17 NA [6,] -15 -7 -6 -11 -16 -11 -17 -23 -18 -15 NA [7,] -10 -6 -4 -3 -2 1 0 0 9 2 NA [8,] 1 5 13 10 15 18 11 15 24 23 NA [9,] 0 -4 5 2 7 11 3 -4 -2 -6 NA [10,] 1 4 9 12 19 17 15 11 14 18 NA [11,] 2 6 -3 -10 -17 -9 -8 -8 -15 -23 NA [12,] 2 6 2 -4 -2 -2 -7 -13 -12 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/rcomp/tmp/1s3l91280843522.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/rcomp/tmp/2lcku1280843522.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/rcomp/tmp/3lcku1280843522.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/rcomp/tmp/4v4jf1280843522.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,] 69 71 70 69.0 88.0 83.0 73 63.0 64 64 65 67 [2,] 87 90 80 85.0 105.0 104.0 98 94.0 107 112 121 118 [3,] 131 139 128 134.5 154.5 142.5 129 128.5 145 154 172 159 [4,] 173 187 179 185.0 195.0 178.0 163 165.0 186 182 200 185 [5,] 185 195 190 195.0 213.0 194.0 171 171.0 188 186 200 192 $n [1] 10 10 10 10 10 10 10 10 10 10 10 10 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] 88.03097 90.53493 78.53565 84.53601 109.5324 105.5266 96.5234 [2,] 173.96903 187.46507 177.46435 184.46399 199.4676 179.4734 161.4766 [,8] [,9] [,10] [,11] [,12] [1,] 93.02557 105.5285 119.0252 132.5285 125.5241 [2,] 163.97443 184.4715 188.9748 211.4715 192.4759 $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(69, 87, 131, 173, 185, 71, 90, 139, 187, 195, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/rcomp/tmp/5v4jf1280843522.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,] -1.0 -14 2 11.0 -20 -23 -10 1 -6 1 -23.0 -13 [2,] 2.0 -11 3 16.0 -17 -17 -4 10 -4 9 -15.0 -7 [3,] 7.5 -7 4 18.5 -12 -15 -1 14 1 13 -8.5 -2 [4,] 12.0 -1 6 20.0 -5 -11 1 18 5 17 -3.0 2 [5,] 17.0 0 9 23.0 -1 -6 2 24 11 19 6.0 6 $n [1] 10 10 10 10 10 10 10 10 10 10 10 9 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] 2.503601 -11.996399 2.501080 16.50144 -17.995678 -17.99784 -3.498199 [2,] 12.496399 -2.003601 5.498920 20.49856 -6.004322 -12.00216 1.498199 [,8] [,9] [,10] [,11] [,12] [1,] 10.00288 -3.496759 9.002881 -14.495678 -6.74 [2,] 17.99712 5.496759 16.997119 -2.504322 2.74 $out [1] -2 2 9 $group [1] 3 4 7 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" "11" "12" Warning message: In bxp(list(stats = c(-1, 2, 7.5, 12, 17, -14, -11, -7, -1, 0, 2, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/rcomp/tmp/6v4jf1280843522.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] [,10] [,11] [1,] 63.0 69.0 80.0 109.0 114.0 139.0 171.0 171.0 155.0 163.0 NA [2,] 64.5 70.5 88.5 114.5 119.5 141.0 175.5 183.5 172.5 175.0 NA [3,] 70.0 73.5 101.0 122.5 130.0 150.0 185.0 188.0 183.5 185.0 NA [4,] 73.0 78.5 109.5 127.0 140.0 167.5 190.0 194.5 187.0 191.5 NA [5,] 73.0 88.0 121.0 137.0 158.0 186.0 204.0 195.0 200.0 200.0 NA $n [1] 12 12 12 12 12 12 12 12 12 12 0 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 66.12309 69.85115 91.42176 116.7987 120.6498 137.9132 178.3865 182.9828 [2,] 73.87691 77.14885 110.57824 128.2013 139.3502 162.0868 191.6135 193.0172 [,9] [,10] [,11] [1,] 176.8865 177.4742 NA [2,] 190.1135 192.5258 NA $out [1] 89 88 213 $group [1] 1 1 8 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" NA Warning message: In bxp(list(stats = c(63, 64.5, 70, 73, 73, 69, 70.5, 73.5, 78.5, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/rcomp/tmp/7ovji1280843522.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,] 126.80 128.00 131.750 [2,] 131.85 130.00 133.375 [3,] 139.65 140.75 142.750 [4,] 143.50 154.25 150.125 [5,] 153.50 172.00 161.625 $n [1] 12 12 12 $conf [,1] [,2] [,3] [1,] 134.3364 129.6894 135.1102 [2,] 144.9636 151.8106 150.3898 $out numeric(0) $group numeric(0) $names [1] "mean" "median" "midrange" Warning message: In bxp(list(stats = c(126.8, 131.85, 139.65, 143.5, 153.5, 128, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > > try(system("convert tmp/1s3l91280843522.ps tmp/1s3l91280843522.png",intern=TRUE)) character(0) > try(system("convert tmp/2lcku1280843522.ps tmp/2lcku1280843522.png",intern=TRUE)) character(0) > try(system("convert tmp/3lcku1280843522.ps tmp/3lcku1280843522.png",intern=TRUE)) character(0) > try(system("convert tmp/4v4jf1280843522.ps tmp/4v4jf1280843522.png",intern=TRUE)) character(0) > try(system("convert tmp/5v4jf1280843522.ps tmp/5v4jf1280843522.png",intern=TRUE)) character(0) > try(system("convert tmp/6v4jf1280843522.ps tmp/6v4jf1280843522.png",intern=TRUE)) character(0) > try(system("convert tmp/7ovji1280843522.ps tmp/7ovji1280843522.png",intern=TRUE)) character(0) > > > proc.time() user system elapsed 2.000 0.590 2.547