R version 2.7.1 (2008-06-23) 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(115.6,118.5,118.1,117.7,117.9,118.5,117,115.6,113.7,112.1,113.5,113.5,112.2,112.7,111.9,111.5,110.8,111.2,110.9,114.1,121.3,121.5,122.5,122.4,122.5,122.8,122.9,123.6,123.4,122.9,121,119,119,114.3,113.4,113.7,113.5,114.4,114.6,111.6,111.8,110.8,112.6,115.3,115.4,115.3,115.5,115,116.3,117,116.9,117.2,117.1,116.7,117.4,126.7,128.6,129.2,131.1,131.1,131.5,133.2,133.7,135.7,134.9,135.7,131.2,127.4,127.5,124.1,124.1,124.1,124.5,123.7,125.9,126,125.5,125.3) > 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] 78 > (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] 7 7 7 7 7 7 6 6 6 6 6 6 > arr [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] 115.6 112.2 122.5 113.5 116.3 131.5 124.5 [2,] 118.5 112.7 122.8 114.4 117.0 133.2 123.7 [3,] 118.1 111.9 122.9 114.6 116.9 133.7 125.9 [4,] 117.7 111.5 123.6 111.6 117.2 135.7 126.0 [5,] 117.9 110.8 123.4 111.8 117.1 134.9 125.5 [6,] 118.5 111.2 122.9 110.8 116.7 135.7 125.3 [7,] 117.0 110.9 121.0 112.6 117.4 131.2 NA [8,] 115.6 114.1 119.0 115.3 126.7 127.4 NA [9,] 113.7 121.3 119.0 115.4 128.6 127.5 NA [10,] 112.1 121.5 114.3 115.3 129.2 124.1 NA [11,] 113.5 122.5 113.4 115.5 131.1 124.1 NA [12,] 113.5 122.4 113.7 115.0 131.1 124.1 NA > darr [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] 2.9 0.5 0.3 0.9 0.7 1.7 -0.8 [2,] -0.4 -0.8 0.1 0.2 -0.1 0.5 2.2 [3,] -0.4 -0.4 0.7 -3.0 0.3 2.0 0.1 [4,] 0.2 -0.7 -0.2 0.2 -0.1 -0.8 -0.5 [5,] 0.6 0.4 -0.5 -1.0 -0.4 0.8 -0.2 [6,] -1.5 -0.3 -1.9 1.8 0.7 -4.5 NA [7,] -1.4 3.2 -2.0 2.7 9.3 -3.8 NA [8,] -1.9 7.2 0.0 0.1 1.9 0.1 NA [9,] -1.6 0.2 -4.7 -0.1 0.6 -3.4 NA [10,] 1.4 1.0 -0.9 0.2 1.9 0.0 NA [11,] 0.0 -0.1 0.3 -0.5 0.0 0.0 NA [12,] -1.3 0.1 -0.2 1.3 0.4 0.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/170k81219053511.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/2uwe71219053511.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/391951219053511.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/4uyxp1219053511.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,] 112.20 112.70 111.90 111.5 110.80 110.80 110.9 114.1 113.70 112.1 113.4 [2,] 114.55 115.70 115.75 114.4 114.45 113.95 112.6 115.3 115.40 114.3 113.5 [3,] 116.30 118.50 118.10 117.7 117.90 118.50 117.2 117.3 120.15 118.4 119.0 [4,] 123.50 123.25 124.40 124.8 124.45 124.10 121.0 126.7 127.50 124.1 124.1 [5,] 131.50 133.20 133.70 135.7 134.90 135.70 131.2 127.4 128.60 129.2 131.1 [,12] [1,] 113.5 [2,] 113.7 [3,] 118.7 [4,] 124.1 [5,] 131.1 $n [1] 7 7 7 7 7 7 6 6 6 6 6 6 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 110.9552 113.9913 112.9344 111.4893 111.9282 112.4386 111.7817 109.9466 [2,] 121.6448 123.0087 123.2656 123.9107 123.8718 124.5614 122.6183 124.6534 [,9] [,10] [,11] [,12] [1,] 112.3451 112.0787 112.1627 111.9917 [2,] 127.9549 124.7213 125.8373 125.4083 $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(112.2, 114.55, 116.3, 123.5, 131.5, 112.7, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/5e77a1219053511.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 -0.80 -0.4 -0.80 -1.00 -4.5 -3.80 -1.9 -4.70 -0.9 -0.1 -0.20 [2,] 0.4 -0.25 -0.4 -0.60 -0.45 -1.9 -2.00 0.0 -3.40 0.0 -0.1 -0.20 [3,] 0.7 0.10 0.1 -0.20 -0.20 -0.9 0.65 0.1 -0.85 0.6 0.0 0.25 [4,] 1.3 0.35 0.5 0.05 0.50 0.7 3.20 1.9 0.20 1.4 0.0 0.40 [5,] 1.7 0.50 0.7 0.20 0.80 1.8 9.30 1.9 0.60 1.9 0.0 1.30 $n [1] 7 7 7 7 7 6 6 6 6 6 6 6 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] 0.1625345 -0.2583103 -0.4374655 -0.5881695 -0.7673247 -2.577084 -2.704168 [2,] 1.2374655 0.4583103 0.6374655 0.1881695 0.3673247 0.777084 4.004168 [,8] [,9] [,10] [,11] [,12] [1,] -1.125561 -3.172116 -0.3030452 -0.06450323 -0.1370194 [2,] 1.325561 1.472116 1.5030452 0.06450323 0.6370194 $out [1] 2.9 2.2 -3.0 2.0 7.2 0.3 -0.5 -1.3 $group [1] 1 2 3 3 8 11 11 12 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" "11" "12" Warning message: In bxp(list(stats = c(-0.799999999999997, 0.399999999999999, 0.700000000000003, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/6hs9u1219053511.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,] 112.1 110.80 113.40 110.8 116.30 124.10 123.7 [2,] 113.6 111.35 116.65 112.2 116.95 125.75 124.5 [3,] 116.3 112.45 121.75 114.5 117.30 131.35 125.4 [4,] 118.0 121.40 122.90 115.3 128.90 134.30 125.9 [5,] 118.5 122.50 123.60 115.5 131.10 135.70 126.0 $n [1] 12 12 12 12 12 12 6 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] 114.2931 107.8661 118.8993 113.0861 111.8495 127.4503 124.4970 [2,] 118.3069 117.0339 124.6007 115.9139 122.7505 135.2497 126.3030 $out numeric(0) $group numeric(0) $names [1] "1" "2" "3" "4" "5" "6" NA Warning message: In bxp(list(stats = c(112.1, 113.6, 116.3, 118, 118.5, 110.8, 111.35, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/7owvs1219053512.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,] 118.3500 116.30 118.8500 [2,] 119.5631 117.50 118.9250 [3,] 120.0869 118.25 119.2375 [4,] 120.4000 118.60 119.8375 [5,] 120.9167 120.15 121.1250 $n [1] 12 12 12 $conf [,1] [,2] [,3] [1,] 119.7052 117.7483 118.8213 [2,] 120.4686 118.7517 119.6537 $out [1] 116.9 $group [1] 3 $names [1] "mean" "median" "midrange" Warning message: In bxp(list(stats = c(118.35, 119.563095238095, 120.086904761905, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > > system("convert tmp/170k81219053511.ps tmp/170k81219053511.png") > system("convert tmp/2uwe71219053511.ps tmp/2uwe71219053511.png") > system("convert tmp/391951219053511.ps tmp/391951219053511.png") > system("convert tmp/4uyxp1219053511.ps tmp/4uyxp1219053511.png") > system("convert tmp/5e77a1219053511.ps tmp/5e77a1219053511.png") > system("convert tmp/6hs9u1219053511.ps tmp/6hs9u1219053511.png") > system("convert tmp/7owvs1219053512.ps tmp/7owvs1219053512.png") > > > proc.time() user system elapsed 1.421 0.958 1.768