R version 2.7.0 (2008-04-22) 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(103.3,101.2,107.7,110.4,101.9,115.9,89.9,88.6,117.2,123.9,100,103.6,94.1,98.7,119.5,112.7,104.4,124.7,89.1,97,121.6,118.8,114,111.5,97.2,102.5,113.4,109.8,104.9,126.1,80,96.8,117.2,112.3,117.3,111.1,102.2,104.3,122.9,107.6,121.3,131.5,89,104.4,128.9,135.9,133.3,121.3,120.5,120.4,137.9,126.1,133.2,151.1,105,119,140.4,156.6,137.1,122.7) > 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] 60 > (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] 5 5 5 5 5 5 5 5 5 5 5 5 > arr [,1] [,2] [,3] [,4] [,5] [,6] [1,] 103.3 94.1 97.2 102.2 120.5 NA [2,] 101.2 98.7 102.5 104.3 120.4 NA [3,] 107.7 119.5 113.4 122.9 137.9 NA [4,] 110.4 112.7 109.8 107.6 126.1 NA [5,] 101.9 104.4 104.9 121.3 133.2 NA [6,] 115.9 124.7 126.1 131.5 151.1 NA [7,] 89.9 89.1 80.0 89.0 105.0 NA [8,] 88.6 97.0 96.8 104.4 119.0 NA [9,] 117.2 121.6 117.2 128.9 140.4 NA [10,] 123.9 118.8 112.3 135.9 156.6 NA [11,] 100.0 114.0 117.3 133.3 137.1 NA [12,] 103.6 111.5 111.1 121.3 122.7 NA > darr [,1] [,2] [,3] [,4] [,5] [,6] [1,] -2.1 4.6 5.3 2.1 -0.1 NA [2,] 6.5 20.8 10.9 18.6 17.5 NA [3,] 2.7 -6.8 -3.6 -15.3 -11.8 NA [4,] -8.5 -8.3 -4.9 13.7 7.1 NA [5,] 14.0 20.3 21.2 10.2 17.9 NA [6,] -26.0 -35.6 -46.1 -42.5 -46.1 NA [7,] -1.3 7.9 16.8 15.4 14.0 NA [8,] 28.6 24.6 20.4 24.5 21.4 NA [9,] 6.7 -2.8 -4.9 7.0 16.2 NA [10,] -23.9 -4.8 5.0 -2.6 -19.5 NA [11,] 3.6 -2.5 -6.2 -12.0 -14.4 NA [12,] -9.5 -14.3 -8.9 -0.8 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/1poga1228246222.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/2w0oh1228246222.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/36fcm1228246222.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/4icsz1228246222.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,] 94.1 98.7 107.7 107.6 101.9 115.9 89.0 88.6 117.2 112.3 100.0 103.6 [2,] 97.2 101.2 113.4 109.8 104.4 124.7 89.0 96.8 117.2 118.8 114.0 111.1 [3,] 102.2 102.5 119.5 110.4 104.9 126.1 89.1 97.0 121.6 123.9 117.3 111.5 [4,] 103.3 104.3 122.9 112.7 121.3 131.5 89.9 104.4 128.9 135.9 133.3 121.3 [5,] 103.3 104.3 122.9 112.7 133.2 131.5 89.9 104.4 140.4 156.6 137.1 122.7 $n [1] 5 5 5 5 5 5 5 5 5 5 5 5 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 97.88976 100.3095 112.7873 108.3509 92.9585 121.2951 88.46406 91.62986 [2,] 106.51024 104.6905 126.2127 112.4491 116.8415 130.9049 89.73594 102.37014 [,9] [,10] [,11] [,12] [1,] 113.3328 111.8172 103.6627 104.2927 [2,] 129.8672 135.9828 130.9373 118.7073 $out [1] 120.5 120.4 137.9 126.1 151.1 80.0 105.0 119.0 $group [1] 1 2 3 4 6 7 7 8 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" "11" "12" Warning message: In bxp(list(stats = c(94.1, 97.2, 102.2, 103.3, 103.3, 98.7, 101.2, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/5tor31228246222.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,] -2.1 6.5 -15.3 -8.5 10.2 -46.1 -1.3 20.4 -4.9 -23.9 -14.4 -14.30 [2,] -0.1 10.9 -11.8 -8.3 14.0 -46.1 7.9 21.4 -2.8 -19.5 -12.0 -11.90 [3,] 2.1 17.5 -6.8 -4.9 17.9 -42.5 14.0 24.5 6.7 -4.8 -6.2 -9.20 [4,] 4.6 18.6 -3.6 7.1 20.3 -35.6 15.4 24.6 7.0 -2.6 -2.5 -4.85 [5,] 5.3 20.8 2.7 13.7 21.2 -26.0 16.8 28.6 16.2 5.0 3.6 -0.80 $n [1] 5 5 5 5 5 5 5 5 5 5 5 4 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] -1.221008 12.0592 -12.594099 -15.781601 13.44844 -49.91927 8.700519 [2,] 5.421008 22.9408 -1.005901 5.981601 22.35156 -35.08073 19.299481 [,8] [,9] [,10] [,11] [,12] [1,] 22.23889 -0.2246553 -16.741497 -12.9126761 -14.7695 [2,] 26.76111 13.6246553 7.141497 0.5126761 -3.6305 $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(-2.09999999999999, -0.0999999999999943, 2.09999999999999, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/6z19l1228246222.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,] 88.60 89.10 80.00 89.00 105.00 NA [2,] 100.60 97.85 99.85 104.35 120.45 NA [3,] 103.45 112.10 110.45 121.30 129.65 NA [4,] 113.15 119.15 115.30 130.20 139.15 NA [5,] 123.90 124.70 126.10 135.90 156.60 NA $n [1] 12 12 12 12 12 0 $conf [,1] [,2] [,3] [,4] [,5] [,6] [1,] 97.72586 102.3849 103.4032 109.5096 121.1208 NA [2,] 109.17414 121.8151 117.4968 133.0904 138.1792 NA $out numeric(0) $group numeric(0) $names [1] "1" "2" "3" "4" "5" NA Warning message: In bxp(list(stats = c(88.6, 100.6, 103.45, 113.15, 123.9, 89.1, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/7p0c31228246222.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,] 90.60 89.10 89.450 [2,] 104.44 102.35 101.675 [3,] 113.68 110.95 114.525 [4,] 122.70 120.55 123.350 [5,] 129.86 126.10 128.100 $n [1] 12 12 12 $conf [,1] [,2] [,3] [1,] 105.3515 102.6489 104.6389 [2,] 122.0085 119.2511 124.4111 $out numeric(0) $group numeric(0) $names [1] "mean" "median" "midrange" Warning message: In bxp(list(stats = c(90.6, 104.44, 113.68, 122.7, 129.86, 89.1, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > > system("convert tmp/1poga1228246222.ps tmp/1poga1228246222.png") > system("convert tmp/2w0oh1228246222.ps tmp/2w0oh1228246222.png") > system("convert tmp/36fcm1228246222.ps tmp/36fcm1228246222.png") > system("convert tmp/4icsz1228246222.ps tmp/4icsz1228246222.png") > system("convert tmp/5tor31228246222.ps tmp/5tor31228246222.png") > system("convert tmp/6z19l1228246222.ps tmp/6z19l1228246222.png") > system("convert tmp/7p0c31228246222.ps tmp/7p0c31228246222.png") > > > proc.time() user system elapsed 2.551 1.561 2.795