R version 2.6.2 (2008-02-08) 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(90.2,94.3,96,99,103.3,113.1,112.8,112.1,107.4,111,110.5,110.8,112.4,111.5,116.2,122.5,121.3,113.9,110.7,120.8,141.1,147.4,148,158.1,165,187,190.3,182.4,168.8,151.2,120.1,112.5,106.2,107.1,108.5,106.5,108.3,125.6,124,127.2,136.9,135.8,124.3,115.4,113.6,114.4,118.4,117,116.5,115.4,113.6,117.4,116.9,116.4,111.1,110.2,118.9,131.8,130.6,138.3,148.4,148.7,144.3,152.5,162.9,167.2,166.5,185.6,193.2,207.8,223.4,246.4) > 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] 72 > (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] 6 6 6 6 6 6 6 6 6 6 6 6 > arr [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] 90.2 112.4 165.0 108.3 116.5 148.4 NA [2,] 94.3 111.5 187.0 125.6 115.4 148.7 NA [3,] 96.0 116.2 190.3 124.0 113.6 144.3 NA [4,] 99.0 122.5 182.4 127.2 117.4 152.5 NA [5,] 103.3 121.3 168.8 136.9 116.9 162.9 NA [6,] 113.1 113.9 151.2 135.8 116.4 167.2 NA [7,] 112.8 110.7 120.1 124.3 111.1 166.5 NA [8,] 112.1 120.8 112.5 115.4 110.2 185.6 NA [9,] 107.4 141.1 106.2 113.6 118.9 193.2 NA [10,] 111.0 147.4 107.1 114.4 131.8 207.8 NA [11,] 110.5 148.0 108.5 118.4 130.6 223.4 NA [12,] 110.8 158.1 106.5 117.0 138.3 246.4 NA > darr [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] 4.1 -0.9 22.0 17.3 -1.1 0.3 NA [2,] 1.7 4.7 3.3 -1.6 -1.8 -4.4 NA [3,] 3.0 6.3 -7.9 3.2 3.8 8.2 NA [4,] 4.3 -1.2 -13.6 9.7 -0.5 10.4 NA [5,] 9.8 -7.4 -17.6 -1.1 -0.5 4.3 NA [6,] -0.3 -3.2 -31.1 -11.5 -5.3 -0.7 NA [7,] -0.7 10.1 -7.6 -8.9 -0.9 19.1 NA [8,] -4.7 20.3 -6.3 -1.8 8.7 7.6 NA [9,] 3.6 6.3 0.9 0.8 12.9 14.6 NA [10,] -0.5 0.6 1.4 4.0 -1.2 15.6 NA [11,] 0.3 10.1 -2.0 -1.4 7.7 23.0 NA [12,] 1.6 6.9 1.8 -0.5 10.1 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/1xzsu1209061166.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/2im521209061166.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/3g3oc1209061166.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/4z2ml1209061166.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] [1,] 90.20 94.3 96.0 99.00 103.3 113.1 110.70 110.20 106.20 107.1 108.5 [2,] 108.30 111.5 113.6 117.40 116.9 113.9 111.10 112.10 107.40 111.0 110.5 [3,] 114.45 120.5 120.1 124.85 129.1 126.1 116.45 113.95 116.25 123.1 124.5 [4,] 148.40 148.7 144.3 152.50 162.9 151.2 124.30 120.80 141.10 147.4 148.0 [5,] 165.00 187.0 190.3 182.40 168.8 167.2 124.30 120.80 141.10 147.4 148.0 [,12] [1,] 106.50 [2,] 110.80 [3,] 127.65 [4,] 158.10 [5,] 158.10 $n [1] 6 6 6 6 6 6 6 6 6 6 6 6 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 88.5842 96.5048 100.2975 102.2094 99.42851 102.0403 107.9356 108.3382 [2,] 140.3158 144.4952 139.9025 147.4906 158.77149 150.1597 124.9644 119.5618 [,9] [,10] [,11] [,12] [1,] 94.51241 99.62082 100.3113 97.13997 [2,] 137.98759 146.57918 148.6887 158.16003 $out [1] 166.5 185.6 193.2 207.8 223.4 246.4 $group [1] 7 8 9 10 11 12 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" "11" "12" Warning message: In bxp(list(stats = c(90.2, 108.3, 114.45, 148.4, 165, 94.3, 111.5, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/5gvi31209061166.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.1 -4.40 3.0 -13.6 -17.6 -11.50 -8.9 -6.3 0.80 -1.2 -2.0 -0.5 [2,] -0.9 -1.80 3.0 -1.2 -7.4 -11.50 -7.6 -4.7 0.90 -0.5 -1.4 1.6 [3,] 2.2 0.05 3.5 1.9 -0.8 -4.25 -0.8 2.9 4.95 1.0 4.0 1.8 [4,] 17.3 3.30 6.3 9.7 4.3 -0.70 10.1 8.7 12.90 4.0 10.1 6.9 [5,] 22.0 4.70 8.2 10.4 9.8 -0.30 19.1 20.3 14.60 4.0 23.0 10.1 $n [1] 6 6 6 6 6 6 6 6 6 6 6 5 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] -9.539588 -3.239665 1.371393 -5.130852 -8.346878 -11.216349 -12.21707 [2,] 13.939588 3.339665 5.628607 8.930852 6.746878 2.716349 10.61707 [,8] [,9] [,10] [,11] [,12] [1,] -5.743433 -2.790388 -1.902645 -3.417871 -1.944967 [2,] 11.543433 12.690388 3.902645 11.417871 5.544967 $out [1] -7.9 -31.1 15.6 $group [1] 3 6 10 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" "11" "12" Warning message: In bxp(list(stats = c(-1.09999999999999, -0.900000000000006, 2.19999999999999, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/6zjr61209061166.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,] 90.20 110.70 106.20 108.3 110.20 144.30 NA [2,] 97.50 113.15 107.80 114.9 114.50 150.60 NA [3,] 108.95 121.05 135.65 121.2 116.70 166.85 NA [4,] 111.55 144.25 175.60 126.4 124.75 200.50 NA [5,] 113.10 158.10 190.30 136.9 138.30 246.40 NA $n [1] 12 12 12 12 12 12 0 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] 102.5417 106.8651 104.7260 115.9548 112.0249 144.0903 NA [2,] 115.3583 135.2349 166.5740 126.4452 121.3751 189.6097 NA $out numeric(0) $group numeric(0) $names [1] "1" "2" "3" "4" "5" "6" NA Warning message: In bxp(list(stats = c(90.2, 97.5, 108.95, 111.55, 113.1, 110.7, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/7p5zi1209061166.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,] 123.4667 113.950 115.8250 [2,] 128.0833 116.350 123.5625 [3,] 131.8333 121.800 127.6875 [4,] 135.8000 125.475 131.6813 [5,] 146.1833 129.100 137.2000 $n [1] 12 12 12 $conf [,1] [,2] [,3] [1,] 128.3137 117.6380 123.9845 [2,] 135.3530 125.9620 131.3905 $out numeric(0) $group numeric(0) $names [1] "mean" "median" "midrange" Warning message: In bxp(list(stats = c(123.466666666667, 128.083333333333, 131.833333333333, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > > system("convert tmp/1xzsu1209061166.ps tmp/1xzsu1209061166.png") > system("convert tmp/2im521209061166.ps tmp/2im521209061166.png") > system("convert tmp/3g3oc1209061166.ps tmp/3g3oc1209061166.png") > system("convert tmp/4z2ml1209061166.ps tmp/4z2ml1209061166.png") > system("convert tmp/5gvi31209061166.ps tmp/5gvi31209061166.png") > system("convert tmp/6zjr61209061166.ps tmp/6zjr61209061166.png") > system("convert tmp/7p5zi1209061166.ps tmp/7p5zi1209061166.png") > > > proc.time() user system elapsed 1.433 0.957 1.706