R version 2.9.0 (2009-04-17) Copyright (C) 2009 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(24.3,29.4,31.8,36.7,37.1,37.7,39.4,43.3,39.6,34.3,32,29.6,22.3,28.9,31.7,34.2,38.6,37.2,38.8,43.4,38.8,36.3,33,29.2,22.64,28.44,30.14,34.39,36.82,36.74,38.9,42.8,39.09,37.49,33.17,30.98,21.2,27.8,29,35.4,37.5,34.7,38.4,39.9,35.9,34.7,30.4,29,21.5,28,29.3,34.3,36.6,36.2,37.5,41.6,39.4,37.3,32.7,30.7,22.9,29.1,29.5,37.1,37.7,38.4,39.4,40.6,39.7,36.6,32.8,31.6,24.1,30.3,31.8,38.7,37.8,38.4,40.7,43.8,41.5,39.3,35.9,33.4) > 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] 84 > (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] 7 7 7 7 7 7 7 7 7 7 7 7 > arr [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 24.3 22.3 22.64 21.2 21.5 22.9 24.1 NA [2,] 29.4 28.9 28.44 27.8 28.0 29.1 30.3 NA [3,] 31.8 31.7 30.14 29.0 29.3 29.5 31.8 NA [4,] 36.7 34.2 34.39 35.4 34.3 37.1 38.7 NA [5,] 37.1 38.6 36.82 37.5 36.6 37.7 37.8 NA [6,] 37.7 37.2 36.74 34.7 36.2 38.4 38.4 NA [7,] 39.4 38.8 38.90 38.4 37.5 39.4 40.7 NA [8,] 43.3 43.4 42.80 39.9 41.6 40.6 43.8 NA [9,] 39.6 38.8 39.09 35.9 39.4 39.7 41.5 NA [10,] 34.3 36.3 37.49 34.7 37.3 36.6 39.3 NA [11,] 32.0 33.0 33.17 30.4 32.7 32.8 35.9 NA [12,] 29.6 29.2 30.98 29.0 30.7 31.6 33.4 NA > darr [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 5.1 6.60 5.80 6.6 6.5 6.2 6.2 NA [2,] 2.4 2.80 1.70 1.2 1.3 0.4 1.5 NA [3,] 4.9 2.50 4.25 6.4 5.0 7.6 6.9 NA [4,] 0.4 4.40 2.43 2.1 2.3 0.6 -0.9 NA [5,] 0.6 -1.40 -0.08 -2.8 -0.4 0.7 0.6 NA [6,] 1.7 1.60 2.16 3.7 1.3 1.0 2.3 NA [7,] 3.9 4.60 3.90 1.5 4.1 1.2 3.1 NA [8,] -3.7 -4.60 -3.71 -4.0 -2.2 -0.9 -2.3 NA [9,] -5.3 -2.50 -1.60 -1.2 -2.1 -3.1 -2.2 NA [10,] -2.3 -3.30 -4.32 -4.3 -4.6 -3.8 -3.4 NA [11,] -2.4 -3.80 -2.19 -1.4 -2.0 -1.2 -2.5 NA [12,] -7.3 -6.56 -9.78 -7.5 -7.8 -7.5 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/1zmx21289819135.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/2avwn1289819135.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/3avwn1289819135.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/4avwn1289819135.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,] 21.20 27.80 29.00 34.200 36.60 34.70 37.5 39.90 38.800 34.300 32.000 29.00 [2,] 21.90 28.22 29.40 34.345 36.96 36.47 38.6 41.10 38.945 35.500 32.350 29.40 [3,] 22.64 28.90 30.14 35.400 37.50 37.20 38.9 42.80 39.400 36.600 32.800 30.70 [4,] 23.50 29.25 31.75 36.900 37.75 38.05 39.4 43.35 39.650 37.395 33.085 31.29 [5,] 24.30 30.30 31.80 38.700 38.60 38.40 39.4 43.80 39.700 39.300 33.170 33.40 $n [1] 7 7 7 7 7 7 7 7 7 7 7 7 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 21.68451 28.2849 28.73662 33.87420 37.02822 36.25645 38.42225 41.45634 [2,] 23.59549 29.5151 31.54338 36.92580 37.97178 38.14355 39.37775 44.14366 [,9] [,10] [,11] [,12] [1,] 38.97899 35.46834 32.36107 29.57132 [2,] 39.82101 37.73166 33.23893 31.82868 $out [1] 40.7 35.9 41.5 30.4 35.9 $group [1] 7 9 9 11 11 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" "11" "12" Warning message: In bxp(list(stats = c(21.2, 21.9, 22.64, 23.5, 24.3, 27.8, 28.22, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/5avwn1289819135.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,] 5.80 0.40 2.500 -0.900 -2.80 1.00 1.2 -4.600 -3.10 -4.60 -2.50 -7.80 [2,] 6.00 1.25 4.575 0.500 -0.90 1.45 2.3 -3.855 -2.80 -4.31 -2.45 -7.80 [3,] 6.20 1.50 5.000 2.100 -0.08 1.70 3.9 -3.700 -2.20 -3.80 -2.19 -7.50 [4,] 6.55 2.05 6.650 2.365 0.60 2.23 4.0 -2.250 -1.85 -3.35 -1.70 -7.30 [5,] 6.60 2.80 7.600 4.400 0.70 2.30 4.6 -0.900 -1.20 -2.30 -1.20 -6.56 $n [1] 7 7 7 7 7 7 7 7 7 7 7 6 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 5.871549 1.022253 3.760843 0.986252 -0.9757758 1.234197 2.884787 -4.65848 [2,] 6.528451 1.977747 6.239157 3.213748 0.8157758 2.165803 4.915213 -2.74152 [,9] [,10] [,11] [,12] [1,] -2.767325 -4.373297 -2.637888 -7.822516 [2,] -1.632675 -3.226703 -1.742112 -7.177484 $out [1] 5.10 3.70 -5.30 -3.80 -9.78 $group [1] 1 6 9 11 12 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" "11" "12" Warning message: In bxp(list(stats = c(5.8, 6, 6.2, 6.55, 6.6, 0.399999999999999, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/6k5vq1289819135.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,] 24.30 22.30 22.640 21.2 21.50 22.90 24.1 NA [2,] 30.70 30.45 30.560 29.0 30.00 30.55 32.6 NA [3,] 35.50 35.25 35.565 34.7 35.25 36.85 38.1 NA [4,] 38.55 38.70 38.195 36.7 37.40 38.90 40.0 NA [5,] 43.30 43.40 42.800 39.9 41.60 40.60 43.8 NA $n [1] 12 12 12 12 12 12 12 0 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 31.91956 31.48712 32.08263 31.18798 31.87481 33.04151 34.72481 NA [2,] 39.08044 39.01288 39.04737 38.21202 38.62519 40.65849 41.47519 NA $out numeric(0) $group numeric(0) $names [1] "1" "2" "3" "4" "5" "6" "7" NA Warning message: In bxp(list(stats = c(24.3, 30.7, 35.5, 38.55, 43.3, 22.3, 30.45, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/7k5vq1289819135.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,] 22.70571 22.64 22.7000 [2,] 30.55143 30.42 30.4600 [3,] 36.19857 36.00 36.0350 [4,] 38.23000 38.20 38.1775 [5,] 42.20000 42.80 42.2250 $n [1] 12 12 12 $conf [,1] [,2] [,3] [1,] 32.69632 32.45149 32.51500 [2,] 39.70082 39.54851 39.55500 $out numeric(0) $group numeric(0) $names [1] "mean" "median" "midrange" Warning message: In bxp(list(stats = c(22.7057142857143, 30.5514285714286, 36.1985714285714, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > > try(system("convert tmp/1zmx21289819135.ps tmp/1zmx21289819135.png",intern=TRUE)) character(0) > try(system("convert tmp/2avwn1289819135.ps tmp/2avwn1289819135.png",intern=TRUE)) character(0) > try(system("convert tmp/3avwn1289819135.ps tmp/3avwn1289819135.png",intern=TRUE)) character(0) > try(system("convert tmp/4avwn1289819135.ps tmp/4avwn1289819135.png",intern=TRUE)) character(0) > try(system("convert tmp/5avwn1289819135.ps tmp/5avwn1289819135.png",intern=TRUE)) character(0) > try(system("convert tmp/6k5vq1289819135.ps tmp/6k5vq1289819135.png",intern=TRUE)) character(0) > try(system("convert tmp/7k5vq1289819135.ps tmp/7k5vq1289819135.png",intern=TRUE)) character(0) > > > proc.time() user system elapsed 1.205 0.939 1.648