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(172,171,170,168,166,165,166,168,169,169,170,172,173,172,165,152,148,145,141,149,146,144,149,150,149,156,150,137,130,126,125,123,117,111,114,121,122,131,125,116,106,98,99,96,95,83,85,98,102,110,101,90,88,83,88,85,86,80,79,97,105,116,99,87,82,81,85,84,78,77,79,85,96,108,98,86,80,74,75,82,71,66,71,75) > 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,] 172 173 149 122 102 105 96 NA [2,] 171 172 156 131 110 116 108 NA [3,] 170 165 150 125 101 99 98 NA [4,] 168 152 137 116 90 87 86 NA [5,] 166 148 130 106 88 82 80 NA [6,] 165 145 126 98 83 81 74 NA [7,] 166 141 125 99 88 85 75 NA [8,] 168 149 123 96 85 84 82 NA [9,] 169 146 117 95 86 78 71 NA [10,] 169 144 111 83 80 77 66 NA [11,] 170 149 114 85 79 79 71 NA [12,] 172 150 121 98 97 85 75 NA > darr [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] -1 -1 7 9 8 11 12 NA [2,] -1 -7 -6 -6 -9 -17 -10 NA [3,] -2 -13 -13 -9 -11 -12 -12 NA [4,] -2 -4 -7 -10 -2 -5 -6 NA [5,] -1 -3 -4 -8 -5 -1 -6 NA [6,] 1 -4 -1 1 5 4 1 NA [7,] 2 8 -2 -3 -3 -1 7 NA [8,] 1 -3 -6 -1 1 -6 -11 NA [9,] 0 -2 -6 -12 -6 -1 -5 NA [10,] 1 5 3 2 -1 2 5 NA [11,] 2 1 7 13 18 6 4 NA [12,] 1 -1 1 4 8 11 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/1o5oc1281782675.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/2o5oc1281782675.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/3o5oc1281782675.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/4he6f1281782675.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,] 96.0 108.0 98.0 86.0 80 74.0 75.0 82.0 71.0 66.0 71.0 75.0 [2,] 103.5 113.0 100.0 88.5 85 82.0 86.5 84.5 82.0 78.5 79.0 91.0 [3,] 122.0 131.0 125.0 116.0 106 98.0 99.0 96.0 95.0 83.0 85.0 98.0 [4,] 160.5 163.5 157.5 144.5 139 135.5 133.0 136.0 131.5 127.5 131.5 135.5 [5,] 173.0 172.0 170.0 168.0 166 165.0 166.0 168.0 169.0 169.0 170.0 172.0 $n [1] 7 7 7 7 7 7 7 7 7 7 7 7 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] 87.96052 100.8422 90.66193 82.5577 73.75207 66.05066 71.23095 [2,] 156.03948 161.1578 159.33807 149.4423 138.24793 129.94934 126.76905 [,8] [,9] [,10] [,11] [,12] [1,] 65.24503 65.4394 53.73799 53.64785 71.42532 [2,] 126.75497 124.5606 112.26201 116.35215 124.57468 $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(96, 103.5, 122, 160.5, 173, 108, 113, 131, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/5he6f1281782675.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 -10.0 -13.0 -10.0 -8.0 -1.0 -3.0 -11 -12.0 -1.0 1 -1.0 [2,] 3 -9.5 -12.5 -6.5 -5.5 0.0 -2.5 -6 -6.0 1.5 3 1.0 [3,] 8 -7.0 -12.0 -5.0 -4.0 1.0 -1.0 -3 -5.0 2.0 6 2.5 [4,] 10 -6.0 -10.0 -3.0 -2.0 2.5 4.5 0 -1.5 4.0 10 8.0 [5,] 12 -1.0 -9.0 -2.0 -1.0 5.0 8.0 1 0.0 5.0 18 11.0 $n [1] 7 7 7 7 7 7 7 7 7 7 7 6 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] 3.819713 -9.090144 -13.49296 -7.090144 -6.090144 -0.4929597 -5.180287 [2,] 12.180287 -4.909856 -10.50704 -2.909856 -1.909856 2.4929597 3.180287 [,8] [,9] [,10] [,11] [,12] [1,] -6.5831032 -7.687327 0.5070403 1.819713 -2.015226 [2,] 0.5831032 -2.312673 3.4929597 10.180287 7.015226 $out [1] -17 -2 -4 $group [1] 2 3 6 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" "11" "12" Warning message: In bxp(list(stats = c(-1, 3, 8, 10, 12, -10, -9.5, -7, -6, -1, -13, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/6rnni1281782675.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,] 165.0 141.0 111.0 83.0 79 77.0 66.0 NA [2,] 167.0 145.5 119.0 95.5 84 80.0 72.5 NA [3,] 169.0 149.0 125.5 98.5 88 84.5 77.5 NA [4,] 170.5 158.5 143.0 119.0 99 93.0 91.0 NA [5,] 172.0 173.0 156.0 131.0 110 105.0 108.0 NA $n [1] 12 12 12 12 12 12 12 0 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 167.4036 143.0706 114.5534 87.7815 81.1584 78.57061 69.06203 NA [2,] 170.5964 154.9294 136.4466 109.2185 94.8416 90.42939 85.93797 NA $out [1] 116 $group [1] 6 $names [1] "1" "2" "3" "4" "5" "6" "7" NA Warning message: In bxp(list(stats = c(165, 167, 169, 170.5, 172, 141, 145.5, 149, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/7rnni1281782675.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,] 104.2857 83.0 103.000 [2,] 109.5714 95.5 107.750 [3,] 113.2143 98.5 111.125 [4,] 124.5714 119.0 122.625 [5,] 137.7143 131.0 138.250 $n [1] 12 12 12 $conf [,1] [,2] [,3] [1,] 106.3727 87.7815 104.3404 [2,] 120.0559 109.2185 117.9096 $out numeric(0) $group numeric(0) $names [1] "mean" "median" "midrange" Warning message: In bxp(list(stats = c(104.285714285714, 109.571428571429, 113.214285714286, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > > try(system("convert tmp/1o5oc1281782675.ps tmp/1o5oc1281782675.png",intern=TRUE)) character(0) > try(system("convert tmp/2o5oc1281782675.ps tmp/2o5oc1281782675.png",intern=TRUE)) character(0) > try(system("convert tmp/3o5oc1281782675.ps tmp/3o5oc1281782675.png",intern=TRUE)) character(0) > try(system("convert tmp/4he6f1281782675.ps tmp/4he6f1281782675.png",intern=TRUE)) character(0) > try(system("convert tmp/5he6f1281782675.ps tmp/5he6f1281782675.png",intern=TRUE)) character(0) > try(system("convert tmp/6rnni1281782675.ps tmp/6rnni1281782675.png",intern=TRUE)) character(0) > try(system("convert tmp/7rnni1281782675.ps tmp/7rnni1281782675.png",intern=TRUE)) character(0) > > > proc.time() user system elapsed 1.186 0.933 1.720