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(29.59,30.7,30.52,32.67,33.19,37.13,35.54,37.75,41.84,42.94,49.14,44.61,40.22,44.23,45.85,53.38,53.26,51.8,55.3,57.81,63.96,63.77,59.15,56.12,57.42,63.52,61.71,63.01,68.18,72.03,69.75,74.41,74.33,64.24,60.03,59.44,62.5,55.04,58.34,61.92,67.65,67.68,70.3,75.26,71.44,76.36,81.71,92.6,90.6,92.23,94.09,102.79,109.65,124.05,132.69,135.81,116.07,101.42,75.73,55.48) > 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,] 29.59 40.22 57.42 62.50 90.60 NA [2,] 30.70 44.23 63.52 55.04 92.23 NA [3,] 30.52 45.85 61.71 58.34 94.09 NA [4,] 32.67 53.38 63.01 61.92 102.79 NA [5,] 33.19 53.26 68.18 67.65 109.65 NA [6,] 37.13 51.80 72.03 67.68 124.05 NA [7,] 35.54 55.30 69.75 70.30 132.69 NA [8,] 37.75 57.81 74.41 75.26 135.81 NA [9,] 41.84 63.96 74.33 71.44 116.07 NA [10,] 42.94 63.77 64.24 76.36 101.42 NA [11,] 49.14 59.15 60.03 81.71 75.73 NA [12,] 44.61 56.12 59.44 92.60 55.48 NA > darr [,1] [,2] [,3] [,4] [,5] [,6] [1,] 1.11 4.01 6.10 -7.46 1.63 NA [2,] -0.18 1.62 -1.81 3.30 1.86 NA [3,] 2.15 7.53 1.30 3.58 8.70 NA [4,] 0.52 -0.12 5.17 5.73 6.86 NA [5,] 3.94 -1.46 3.85 0.03 14.40 NA [6,] -1.59 3.50 -2.28 2.62 8.64 NA [7,] 2.21 2.51 4.66 4.96 3.12 NA [8,] 4.09 6.15 -0.08 -3.82 -19.74 NA [9,] 1.10 -0.19 -10.09 4.92 -14.65 NA [10,] 6.20 -4.62 -4.21 5.35 -25.69 NA [11,] -4.53 -3.03 -0.59 10.89 -20.25 NA [12,] -4.39 1.30 3.06 -2.00 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/1424y1229602367.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/217691229602367.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/3518a1229602367.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/4ck821229602367.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,] 29.59 30.70 30.52 53.38 33.19 37.13 35.54 37.75 63.96 63.77 49.14 55.48 [2,] 40.22 44.23 45.85 53.38 53.26 51.80 55.30 57.81 63.96 63.77 59.15 55.48 [3,] 57.42 55.04 58.34 61.92 67.65 67.68 69.75 74.41 71.44 64.24 60.03 56.12 [4,] 62.50 63.52 61.71 63.01 68.18 72.03 70.30 75.26 74.33 76.36 75.73 59.44 [5,] 90.60 92.23 61.71 63.01 68.18 72.03 70.30 75.26 74.33 76.36 81.71 59.44 $n [1] 5 5 5 5 5 5 5 5 5 5 5 5 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 41.67701 41.40973 47.13336 55.11547 57.10757 53.38553 59.15104 62.07987 [2,] 73.16299 68.67027 69.54664 68.72453 78.19243 81.97447 80.34896 86.74013 [,9] [,10] [,11] [,12] [1,] 64.11258 55.34394 48.31461 53.32187 [2,] 78.76742 73.13606 71.74539 58.91813 $out [1] 94.09 32.67 102.79 109.65 124.05 132.69 135.81 41.84 116.07 42.94 [11] 101.42 44.61 92.60 $group [1] 3 4 4 5 6 7 8 9 9 10 10 12 12 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" "11" "12" Warning message: In bxp(list(stats = c(29.59, 40.22, 57.42, 62.5, 90.6, 30.7, 44.23, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/freestat/rcomp/tmp/5azy01229602367.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,] 1.11 -1.81 1.30 -0.12 -1.46 -2.28 2.21 -3.82 -14.65 -4.62 -4.53 -4.390 [2,] 1.11 -0.18 2.15 0.52 0.03 -1.59 2.51 -3.82 -10.09 -4.62 -4.53 -3.195 [3,] 1.63 1.62 3.58 5.17 3.85 2.62 3.12 -0.08 -0.19 -4.21 -3.03 -0.350 [4,] 4.01 1.86 7.53 5.73 3.94 3.50 4.66 4.09 1.10 5.35 -0.59 2.180 [5,] 6.10 3.30 8.70 6.86 3.94 8.64 4.96 6.15 4.92 6.20 -0.59 3.060 $n [1] 5 5 5 5 5 5 5 5 5 5 5 4 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] -0.4191327 0.1785411 -0.2214944 1.488627 1.087204 -0.9765812 1.600815 [2,] 3.6791327 3.0614589 7.3814944 8.851373 6.612796 6.2165812 4.639185 [,8] [,9] [,10] [,11] [,12] [1,] -5.669186 -8.096826 -11.254777 -5.8139941 -4.59625 [2,] 5.509186 7.716826 2.834777 -0.2460059 3.89625 $out [1] -7.46 14.40 -19.74 -25.69 10.89 -20.25 $group [1] 1 5 8 10 11 11 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" "11" "12" Warning message: In bxp(list(stats = c(1.11, 1.11, 1.63000000000001, 4.01, 6.1, -1.81000000000000, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/freestat/rcomp/tmp/6pqzi1229602367.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,] 29.590 40.220 57.42 55.04 55.480 NA [2,] 31.685 48.825 60.87 62.21 91.415 NA [3,] 36.335 54.340 63.88 68.99 102.105 NA [4,] 42.390 58.480 70.89 75.81 120.060 NA [5,] 49.140 63.960 74.41 92.60 135.810 NA $n [1] 12 12 12 12 12 0 $conf [,1] [,2] [,3] [,4] [,5] [,6] [1,] 31.45238 49.93629 59.30981 62.78695 89.03982 NA [2,] 41.21762 58.74371 68.45019 75.19305 115.17018 NA $out numeric(0) $group numeric(0) $names [1] "1" "2" "3" "4" "5" NA Warning message: In bxp(list(stats = c(29.59, 31.685, 36.335, 42.39, 49.14, 40.22, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/freestat/rcomp/tmp/7hfpe1229602367.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,] 56.066 55.040 51.3600 [2,] 59.876 57.880 55.6675 [3,] 65.769 63.080 61.3175 [4,] 71.627 68.715 66.9875 [5,] 76.208 74.410 70.0650 $n [1] 12 12 12 $conf [,1] [,2] [,3] [1,] 60.40929 58.13808 56.15437 [2,] 71.12871 68.02192 66.48063 $out numeric(0) $group numeric(0) $names [1] "mean" "median" "midrange" > dev.off() null device 1 > > system("convert tmp/1424y1229602367.ps tmp/1424y1229602367.png") > system("convert tmp/217691229602367.ps tmp/217691229602367.png") > system("convert tmp/3518a1229602367.ps tmp/3518a1229602367.png") > system("convert tmp/4ck821229602367.ps tmp/4ck821229602367.png") > system("convert tmp/5azy01229602367.ps tmp/5azy01229602367.png") > system("convert tmp/6pqzi1229602367.ps tmp/6pqzi1229602367.png") > system("convert tmp/7hfpe1229602367.ps tmp/7hfpe1229602367.png") > > > proc.time() user system elapsed 1.870 1.484 2.419