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(93.2,96,95.2,77.1,70.9,64.8,70.1,77.3,79.5,100.6,100.7,107.1,95.9,82.8,83.3,80,80.4,67.5,75.7,71.1,89.3,101.1,105.2,114.1,96.3,84.4,91.2,81.9,80.5,70.4,74.8,75.9,86.3,98.7,100.9,113.8,89.8,84.4,87.2,85.6,72,69.2,77.5,78.1,94.3,97.7,100.2,116.4,97.1,93,96,80.5,76.1,69.9,73.6,92.6,94.2,93.5,108.5,109.4,105.1,92.5,97.1,81.4,79.1,72.1,78.7,87.1,91.4,109.9,116.3,113,100,84.8,94.3,87.1,90.3,72.4,84.9,92.7,92.2,114.9,112.5,118.3,106,91.2,96.6,96.3,88.2,70.2,86.5,88.2,102.8,119.1,119.2,125.1) > 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] 96 > (np <- floor(n / par1)) [1] 8 > 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 8 8 8 > arr [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [,9] [1,] 93.2 95.9 96.3 89.8 97.1 105.1 100.0 106.0 NA [2,] 96.0 82.8 84.4 84.4 93.0 92.5 84.8 91.2 NA [3,] 95.2 83.3 91.2 87.2 96.0 97.1 94.3 96.6 NA [4,] 77.1 80.0 81.9 85.6 80.5 81.4 87.1 96.3 NA [5,] 70.9 80.4 80.5 72.0 76.1 79.1 90.3 88.2 NA [6,] 64.8 67.5 70.4 69.2 69.9 72.1 72.4 70.2 NA [7,] 70.1 75.7 74.8 77.5 73.6 78.7 84.9 86.5 NA [8,] 77.3 71.1 75.9 78.1 92.6 87.1 92.7 88.2 NA [9,] 79.5 89.3 86.3 94.3 94.2 91.4 92.2 102.8 NA [10,] 100.6 101.1 98.7 97.7 93.5 109.9 114.9 119.1 NA [11,] 100.7 105.2 100.9 100.2 108.5 116.3 112.5 119.2 NA [12,] 107.1 114.1 113.8 116.4 109.4 113.0 118.3 125.1 NA > darr [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [,9] [1,] 2.8 -13.1 -11.9 -5.4 -4.1 -12.6 -15.2 -14.8 NA [2,] -0.8 0.5 6.8 2.8 3.0 4.6 9.5 5.4 NA [3,] -18.1 -3.3 -9.3 -1.6 -15.5 -15.7 -7.2 -0.3 NA [4,] -6.2 0.4 -1.4 -13.6 -4.4 -2.3 3.2 -8.1 NA [5,] -6.1 -12.9 -10.1 -2.8 -6.2 -7.0 -17.9 -18.0 NA [6,] 5.3 8.2 4.4 8.3 3.7 6.6 12.5 16.3 NA [7,] 7.2 -4.6 1.1 0.6 19.0 8.4 7.8 1.7 NA [8,] 2.2 18.2 10.4 16.2 1.6 4.3 -0.5 14.6 NA [9,] 21.1 11.8 12.4 3.4 -0.7 18.5 22.7 16.3 NA [10,] 0.1 4.1 2.2 2.5 15.0 6.4 -2.4 0.1 NA [11,] 6.4 8.9 12.9 16.2 0.9 -3.3 5.8 5.9 NA [12,] -11.2 -17.8 -24.0 -19.3 -4.3 -13.0 -12.3 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/freestat/rcomp/tmp/1i3dt1275856436.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/2i3dt1275856436.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/3i3dt1275856436.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/4tcuw1275856436.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,] 89.80 82.80 83.30 77.10 70.90 64.80 70.1 71.1 79.50 93.50 100.20 107.10 [2,] 94.55 84.40 89.20 80.25 74.05 68.35 74.2 76.6 87.80 98.20 100.80 111.20 [3,] 96.70 88.00 94.75 81.65 79.75 70.05 76.6 82.6 91.80 100.85 106.85 113.95 [4,] 102.55 92.75 96.30 86.35 84.35 71.25 81.8 90.4 94.25 112.40 114.40 117.35 [5,] 106.00 96.00 97.10 87.10 90.30 72.40 86.5 92.7 102.80 119.10 119.20 125.10 $n [1] 8 8 8 8 8 8 8 8 8 8 8 8 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 92.23109 83.33557 90.78384 78.24245 73.99627 68.43002 72.35453 74.89112 [2,] 101.16891 92.66443 98.71616 85.05755 85.50373 71.66998 80.84547 90.30888 [,9] [,10] [,11] [,12] [1,] 88.19694 92.91768 99.25284 110.5145 [2,] 95.40306 108.78232 114.44716 117.3855 $out [1] 96.3 $group [1] 4 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" "11" "12" Warning message: In bxp(list(stats = c(89.8, 94.55, 96.7, 102.55, 106, 82.8, 84.4, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/freestat/rcomp/tmp/5tcuw1275856436.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,] -15.20 -0.80 -18.10 -13.60 -18.00 3.70 -4.60 -0.50 -0.70 -2.40 -3.30 [2,] -13.95 1.65 -15.60 -7.15 -15.40 4.85 0.85 1.90 7.60 0.10 3.35 [3,] -12.25 3.80 -8.25 -3.35 -8.55 7.40 4.45 7.35 14.35 2.35 6.15 [4,] -4.75 6.10 -2.45 -0.50 -6.15 10.40 8.10 15.40 19.80 5.25 10.90 [5,] 2.80 9.50 -0.30 3.20 -2.80 16.30 8.40 18.20 22.70 6.40 16.20 [,12] [1,] -24.00 [2,] -18.55 [3,] -13.00 [4,] -11.75 [5,] -4.30 $n [1] 8 8 8 8 8 8 8 8 8 8 8 7 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] -17.389252 1.314166 -15.5957788 -7.0647855 -13.717183 4.29969 0.4000459 [2,] -7.110748 6.285834 -0.9042212 0.3647855 -3.382817 10.50031 8.4999541 [,8] [,9] [,10] [,11] [,12] [1,] -0.1912938 7.534905 -0.5268639 1.932462 -17.06085 [2,] 14.8912938 21.165095 5.2268639 10.367538 -8.93915 $out [1] 19 15 $group [1] 7 10 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" "11" "12" Warning message: In bxp(list(stats = c(-15.2, -13.95, -12.25, -4.74999999999999, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/freestat/rcomp/tmp/6l3th1275856436.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] [,9] [1,] 64.80 67.50 70.40 69.2 69.90 72.10 72.40 70.20 NA [2,] 74.00 77.85 78.20 77.8 78.30 80.25 86.00 88.20 NA [3,] 86.35 83.05 85.35 86.4 93.25 91.95 92.45 96.45 NA [4,] 98.30 98.50 97.50 96.0 96.55 107.50 106.25 112.55 NA [5,] 107.10 114.10 113.80 116.4 109.40 116.30 118.30 125.10 NA $n [1] 12 12 12 12 12 12 12 12 0 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 75.2666 73.6314 76.54714 78.09886 84.92605 79.5211 83.21384 85.3438 [2,] 97.4334 92.4686 94.15286 94.70114 101.57395 104.3789 101.68616 107.5562 [,9] [1,] NA [2,] NA $out numeric(0) $group numeric(0) $names [1] "1" "2" "3" "4" "5" "6" "7" "8" NA Warning message: In bxp(list(stats = c(64.8, 74, 86.35, 98.3, 107.1, 67.5, 77.85, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/freestat/rcomp/tmp/7l3th1275856436.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,] 69.56250 70.050 69.8000 [2,] 81.28125 80.700 80.9375 [3,] 89.94375 89.900 89.9500 [4,] 101.18125 98.775 101.5250 [5,] 114.65000 113.950 114.4875 $n [1] 12 12 12 $conf [,1] [,2] [,3] [1,] 80.86723 81.65587 80.5599 [2,] 99.02027 98.14413 99.3401 $out numeric(0) $group numeric(0) $names [1] "mean" "median" "midrange" Warning message: In bxp(list(stats = c(69.5625, 81.28125, 89.94375, 101.18125, 114.65, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > > try(system("convert tmp/1i3dt1275856436.ps tmp/1i3dt1275856436.png",intern=TRUE)) character(0) > try(system("convert tmp/2i3dt1275856436.ps tmp/2i3dt1275856436.png",intern=TRUE)) character(0) > try(system("convert tmp/3i3dt1275856436.ps tmp/3i3dt1275856436.png",intern=TRUE)) character(0) > try(system("convert tmp/4tcuw1275856436.ps tmp/4tcuw1275856436.png",intern=TRUE)) character(0) > try(system("convert tmp/5tcuw1275856436.ps tmp/5tcuw1275856436.png",intern=TRUE)) character(0) > try(system("convert tmp/6l3th1275856436.ps tmp/6l3th1275856436.png",intern=TRUE)) character(0) > try(system("convert tmp/7l3th1275856436.ps tmp/7l3th1275856436.png",intern=TRUE)) character(0) > > > proc.time() user system elapsed 1.852 1.464 2.064