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(98.1,101.1,111.1,93.3,100,108,70.4,75.4,105.5,112.3,102.5,93.5,86.7,95.2,103.8,97,95.5,101,67.5,64,106.7,100.6,101.2,93.1,84.2,85.8,91.8,92.4,80.3,79.7,62.5,57.1,100.8,100.7,86.2,83.2,71.7,77.5,89.8,80.3,78.7,93.8,57.6,60.6,91,85.3,77.4,77.3,68.3,69.9,81.7,75.1,69.9,84,54.3,60,89.9,77,85.3,77.6,69.2,75.5,85.7,72.2,79.9,85.3,52.2,61.2,82.4,85.4,78.2,70.2,70.2,69.3,77.5,66.1,69,79.2,56.2,63.3,77.8,92,78.1,65.1,71.1,70.9,72,81.9,70.6,72.5,65.1,54.9,80) > 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] 93 > (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] 8 8 8 8 8 8 8 8 8 7 7 7 > arr [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 98.1 86.7 84.2 71.7 68.3 69.2 70.2 71.1 [2,] 101.1 95.2 85.8 77.5 69.9 75.5 69.3 70.9 [3,] 111.1 103.8 91.8 89.8 81.7 85.7 77.5 72.0 [4,] 93.3 97.0 92.4 80.3 75.1 72.2 66.1 81.9 [5,] 100.0 95.5 80.3 78.7 69.9 79.9 69.0 70.6 [6,] 108.0 101.0 79.7 93.8 84.0 85.3 79.2 72.5 [7,] 70.4 67.5 62.5 57.6 54.3 52.2 56.2 65.1 [8,] 75.4 64.0 57.1 60.6 60.0 61.2 63.3 54.9 [9,] 105.5 106.7 100.8 91.0 89.9 82.4 77.8 80.0 [10,] 112.3 100.6 100.7 85.3 77.0 85.4 92.0 NA [11,] 102.5 101.2 86.2 77.4 85.3 78.2 78.1 NA [12,] 93.5 93.1 83.2 77.3 77.6 70.2 65.1 NA > darr [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 3.0 8.5 1.6 5.8 1.6 6.3 -0.9 -0.2 [2,] 10.0 8.6 6.0 12.3 11.8 10.2 8.2 1.1 [3,] -17.8 -6.8 0.6 -9.5 -6.6 -13.5 -11.4 9.9 [4,] 6.7 -1.5 -12.1 -1.6 -5.2 7.7 2.9 -11.3 [5,] 8.0 5.5 -0.6 15.1 14.1 5.4 10.2 1.9 [6,] -37.6 -33.5 -17.2 -36.2 -29.7 -33.1 -23.0 -7.4 [7,] 5.0 -3.5 -5.4 3.0 5.7 9.0 7.1 -10.2 [8,] 30.1 42.7 43.7 30.4 29.9 21.2 14.5 25.1 [9,] 6.8 -6.1 -0.1 -5.7 -12.9 3.0 14.2 NA [10,] -9.8 0.6 -14.5 -7.9 8.3 -7.2 -13.9 NA [11,] -9.0 -8.1 -3.0 -0.1 -7.7 -8.0 -13.0 NA [12,] -6.8 -8.9 -11.5 -9.0 -8.4 0.0 6.0 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/freestat/rcomp/tmp/1guqt1229686283.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/freestat/rcomp/tmp/27t4c1229686283.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/freestat/rcomp/tmp/3y3001229686283.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/freestat/rcomp/tmp/4f6gk1229686283.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,] 68.30 69.3 72.00 66.10 69.00 72.50 52.20 54.90 77.80 77.00 77.40 [2,] 69.70 70.4 79.60 73.65 70.25 79.45 55.25 58.55 81.20 85.35 78.15 [3,] 71.40 76.5 87.75 81.10 79.30 84.65 60.05 60.90 90.45 92.00 85.30 [4,] 85.45 90.5 97.80 92.85 87.90 97.40 66.30 63.65 103.15 100.65 93.70 [5,] 98.10 101.1 111.10 97.00 100.00 108.00 70.40 64.00 106.70 112.30 102.50 [,12] [1,] 65.10 [2,] 73.75 [3,] 77.60 [4,] 88.15 [5,] 93.50 $n [1] 8 8 8 8 8 8 8 8 8 7 7 7 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 62.60182 65.27185 77.58322 70.3746 69.44046 74.62287 53.87731 58.05107 [2,] 80.19818 87.72815 97.91678 91.8254 89.15954 94.67713 66.22269 63.74893 [,9] [,10] [,11] [,12] [1,] 78.18841 82.86309 76.01379 69.00055 [2,] 102.71159 101.13691 94.58621 86.19945 $out [1] 75.4 $group [1] 8 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" "11" "12" Warning message: In bxp(list(stats = c(68.3, 69.7, 71.4, 85.45, 98.1, 69.3, 70.4, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/freestat/rcomp/tmp/5i97j1229686283.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] [1,] -0.90 6.0 -17.80 -12.10 -0.60 -37.60 -10.20 14.50 -12.9 -14.50 -13.00 [2,] 0.70 7.1 -12.45 -8.25 3.65 -34.85 -4.45 23.15 -5.9 -11.85 -8.55 [3,] 2.30 9.3 -8.15 -1.55 6.75 -31.40 4.00 30.00 -0.1 -7.90 -8.00 [4,] 6.05 11.0 -3.00 4.80 12.15 -20.10 6.40 36.55 4.9 -3.30 -5.35 [5,] 8.50 12.3 9.90 7.70 15.10 -7.40 9.00 43.70 14.2 8.30 -3.00 [,12] [1,] -11.50 [2,] -8.95 [3,] -8.40 [4,] -3.40 [5,] 0.00 $n [1] 8 8 8 8 8 8 8 8 7 7 7 7 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] -0.6885868 7.121404 -13.428906 -8.839917 2.001778 -39.63956 -2.060966 [2,] 5.2885868 11.478596 -2.871094 5.739917 11.498222 -23.16044 10.060966 [,8] [,9] [,10] [,11] [,12] [1,] 22.51457 -6.549586 -13.005922 -9.910988 -11.71437 [2,] 37.48543 6.349586 -2.794078 -6.089012 -5.08563 $out [1] 1.1 -0.1 6.0 $group [1] 2 11 12 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" "11" "12" Warning message: In bxp(list(stats = c(-0.900000000000006, 0.700000000000003, 2.30000000000000, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/freestat/rcomp/tmp/6jts21229686283.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,] 75.40 86.70 62.5 57.60 54.30 52.20 56.20 70.6 [2,] 93.40 89.90 80.0 74.50 69.10 69.70 65.60 70.6 [3,] 100.55 96.25 85.0 78.10 76.05 76.85 69.75 71.1 [4,] 106.75 101.10 92.1 87.55 82.85 83.85 77.95 72.5 [5,] 112.30 106.70 100.8 93.80 89.90 85.70 92.00 72.5 $n [1] 12 12 12 12 12 12 12 9 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 94.46098 91.1416 79.48111 72.14781 69.77853 70.39609 64.11708 70.09933 [2,] 106.63902 101.3584 90.51889 84.05219 82.32147 83.30391 75.38292 72.10067 $out [1] 70.4 67.5 64.0 57.1 81.9 65.1 54.9 80.0 $group [1] 1 2 2 3 8 8 8 8 $names [1] "1" "2" "3" "4" "5" "6" "7" NA Warning message: In bxp(list(stats = c(75.4, 93.4, 100.55, 106.75, 112.3, 86.7, 89.9, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/freestat/rcomp/tmp/7vb5d1229686283.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,] 77.43750 60.050 77.26250 [2,] 78.71875 73.950 77.32500 [3,] 81.46875 80.200 82.22500 [4,] 88.55625 86.525 87.65625 [5,] 93.32857 92.000 93.00000 $n [1] 12 12 12 $conf [,1] [,2] [,3] [1,] 76.9818 74.46446 77.51285 [2,] 85.9557 85.93554 86.93715 $out [1] 60.7250 62.0625 60.7125 61.3750 $group [1] 1 1 3 3 $names [1] "mean" "median" "midrange" Warning message: In bxp(list(stats = c(77.4375, 78.71875, 81.46875, 88.55625, 93.3285714285714, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > > system("convert tmp/1guqt1229686283.ps tmp/1guqt1229686283.png") > system("convert tmp/27t4c1229686283.ps tmp/27t4c1229686283.png") > system("convert tmp/3y3001229686283.ps tmp/3y3001229686283.png") > system("convert tmp/4f6gk1229686283.ps tmp/4f6gk1229686283.png") > system("convert tmp/5i97j1229686283.ps tmp/5i97j1229686283.png") > system("convert tmp/6jts21229686283.ps tmp/6jts21229686283.png") > system("convert tmp/7vb5d1229686283.ps tmp/7vb5d1229686283.png") > > > proc.time() user system elapsed 1.903 1.501 2.464