R version 2.8.0 (2008-10-20) 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(95.1,95.9,95.9,96.9,95.7,97.8,95.9,98.2,101.2,106.8,108.2,108.2,113.2,115.2,122,119.8,119.8,112.7,113.8,118.6,119.2,118.1,121.6,125.3,126.5,133.6,136.5,131.9,131.9,139.3,139.9,140.1,142.1,141.8,143.5,143.6,140.6,137.4,133.9,134.6,134.6,132.1,132.5,134.1,135.1,136.4,136.6,138.1,138.4,141,144.9,153.4,156.5,160.7,163.9,166.7,169.7,174.3,181.8,187.8,182.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] 61 > (np <- floor(n / par1)) [1] 5 > 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 5 5 5 5 5 5 5 5 5 5 5 > arr [,1] [,2] [,3] [,4] [,5] [,6] [1,] 95.1 113.2 126.5 140.6 138.4 182.4 [2,] 95.9 115.2 133.6 137.4 141.0 NA [3,] 95.9 122.0 136.5 133.9 144.9 NA [4,] 96.9 119.8 131.9 134.6 153.4 NA [5,] 95.7 119.8 131.9 134.6 156.5 NA [6,] 97.8 112.7 139.3 132.1 160.7 NA [7,] 95.9 113.8 139.9 132.5 163.9 NA [8,] 98.2 118.6 140.1 134.1 166.7 NA [9,] 101.2 119.2 142.1 135.1 169.7 NA [10,] 106.8 118.1 141.8 136.4 174.3 NA [11,] 108.2 121.6 143.5 136.6 181.8 NA [12,] 108.2 125.3 143.6 138.1 187.8 NA > darr [,1] [,2] [,3] [,4] [,5] [,6] [1,] 0.8 2.0 7.1 -3.2 2.6 NA [2,] 0.0 6.8 2.9 -3.5 3.9 NA [3,] 1.0 -2.2 -4.6 0.7 8.5 NA [4,] -1.2 0.0 0.0 0.0 3.1 NA [5,] 2.1 -7.1 7.4 -2.5 4.2 NA [6,] -1.9 1.1 0.6 0.4 3.2 NA [7,] 2.3 4.8 0.2 1.6 2.8 NA [8,] 3.0 0.6 2.0 1.0 3.0 NA [9,] 5.6 -1.1 -0.3 1.3 4.6 NA [10,] 1.4 3.5 1.7 0.2 7.5 NA [11,] 0.0 3.7 0.1 1.5 6.0 NA [12,] 5.0 1.2 -3.0 0.3 -5.4 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/16v5c1229943727.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/2lrpa1229943727.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/3agjv1229943727.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/4v2va1229943727.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,] 95.10 95.9 122.0 119.8 119.8 97.8 95.9 98.2 101.2 106.8 108.2 108.2 [2,] 113.20 115.2 122.0 119.8 119.8 112.7 113.8 118.6 119.2 118.1 121.6 125.3 [3,] 132.45 133.6 133.9 131.9 131.9 132.1 132.5 134.1 135.1 136.4 136.6 138.1 [4,] 140.60 137.4 136.5 134.6 134.6 139.3 139.9 140.1 142.1 141.8 143.5 143.6 [5,] 140.60 141.0 144.9 153.4 156.5 160.7 163.9 166.7 169.7 174.3 143.5 143.6 $n [1] 6 5 5 5 5 5 5 5 5 5 5 5 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 114.7761 117.9135 123.6543 121.4424 121.4424 113.3045 114.0578 118.9082 [2,] 150.1239 149.2865 144.1457 142.3576 142.3576 150.8955 150.9422 149.2918 [,9] [,10] [,11] [,12] [1,] 118.9189 119.6536 121.1255 125.1693 [2,] 151.2811 153.1464 152.0745 151.0307 $out [1] 182.4 95.9 96.9 95.7 181.8 187.8 $group [1] 1 3 4 5 11 12 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" "11" "12" Warning message: In bxp(list(stats = c(95.1, 113.2, 132.45, 140.6, 140.6, 95.9, 115.2, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/5cazk1229943727.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,] 0.8 -3.5 -4.6 0 -7.1 0.4 0.2 0.6 -1.1 0.2 0.0 -5.4 [2,] 0.8 0.0 -2.2 0 -2.5 0.4 1.6 1.0 -0.3 1.4 0.1 -3.0 [3,] 2.0 2.9 0.7 0 2.1 0.6 2.3 2.0 1.3 1.7 1.5 0.3 [4,] 2.6 3.9 1.0 0 4.2 1.1 2.8 3.0 4.6 3.5 3.7 1.2 [5,] 2.6 6.8 1.0 0 7.4 1.1 2.8 3.0 5.6 3.5 6.0 5.0 $n [1] 5 5 5 5 5 5 5 5 5 5 5 5 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 0.7281245 0.1442698 -1.561112 0 -2.634203 0.1053818 1.452083 0.586805 [2,] 3.2718755 5.6557302 2.961112 0 6.834203 1.0946182 3.147917 3.413195 [,9] [,10] [,11] [,12] [1,] -2.162328 0.2161453 -1.043751 -2.667709 [2,] 4.762328 3.1838547 4.043751 3.267709 $out [1] 7.1 -3.2 8.5 -1.2 3.1 -1.9 3.2 4.8 7.5 $group [1] 1 1 3 4 4 6 6 7 10 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" "11" "12" Warning message: In bxp(list(stats = c(0.800000000000011, 0.800000000000011, 2, 2.59999999999999, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/6zx4x1229943727.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] [1,] 95.10 112.7 126.50 132.10 138.40 182.4 [2,] 95.90 114.5 132.75 134.00 149.15 182.4 [3,] 97.35 118.9 139.60 134.85 162.30 182.4 [4,] 104.00 120.7 141.95 137.00 172.00 182.4 [5,] 108.20 125.3 143.60 140.60 187.80 182.4 $n [1] 12 12 12 12 12 1 $conf [,1] [,2] [,3] [,4] [,5] [,6] [1,] 93.65554 116.0721 135.4038 133.4817 151.8780 182.4 [2,] 101.04446 121.7279 143.7962 136.2183 172.7220 182.4 $out numeric(0) $group numeric(0) $names [1] "1" "2" "3" "4" "5" NA Warning message: In bxp(list(stats = c(95.1, 95.9, 97.35, 104, 108.2, 112.7, 114.5, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/7h10x1229943727.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,] 124.62 131.900 126.0000 [2,] 127.51 132.275 127.0250 [3,] 130.37 133.750 128.7688 [4,] 134.47 135.750 130.3000 [5,] 140.60 138.100 134.4500 $n [1] 12 12 12 $conf [,1] [,2] [,3] [1,] 127.1955 132.1650 127.2750 [2,] 133.5445 135.3350 130.2625 $out numeric(0) $group numeric(0) $names [1] "mean" "median" "midrange" Warning message: In bxp(list(stats = c(124.62, 127.51, 130.37, 134.47, 140.6, 131.9, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > > system("convert tmp/16v5c1229943727.ps tmp/16v5c1229943727.png") > system("convert tmp/2lrpa1229943727.ps tmp/2lrpa1229943727.png") > system("convert tmp/3agjv1229943727.ps tmp/3agjv1229943727.png") > system("convert tmp/4v2va1229943727.ps tmp/4v2va1229943727.png") > system("convert tmp/5cazk1229943727.ps tmp/5cazk1229943727.png") > system("convert tmp/6zx4x1229943727.ps tmp/6zx4x1229943727.png") > system("convert tmp/7h10x1229943727.ps tmp/7h10x1229943727.png") > > > proc.time() user system elapsed 1.231 0.957 1.633