R version 2.11.1 (2010-05-31) Copyright (C) 2010 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(95.05,96.84,96.92,97.44,97.78,97.69,96.67,98.29,98.2,98.71,98.54,98.2,96.92,99.06,99.65,99.82,99.99,100.33,99.31,101.1,101.1,100.93,100.85,100.93,99.6,101.88,101.81,102.38,102.74,102.82,101.72,103.47,102.98,102.68,102.9,103.03,101.29,103.69,103.68,104.2,104.08,104.16,103.05,104.66,104.46,104.95,105.85,106.23,104.86,107.44,108.23,108.45,109.39,110.15,109.13,110.28,110.17,109.99,109.26,109.11,107.06,109.53,108.92,109.24,109.12,109,107.23,109.49,109.04,109.02,109.23,109.46) > 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] 72 > (np <- floor(n / par1)) [1] 6 > 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] 6 6 6 6 6 6 6 6 6 6 6 6 > arr [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] 95.05 96.92 99.60 101.29 104.86 107.06 NA [2,] 96.84 99.06 101.88 103.69 107.44 109.53 NA [3,] 96.92 99.65 101.81 103.68 108.23 108.92 NA [4,] 97.44 99.82 102.38 104.20 108.45 109.24 NA [5,] 97.78 99.99 102.74 104.08 109.39 109.12 NA [6,] 97.69 100.33 102.82 104.16 110.15 109.00 NA [7,] 96.67 99.31 101.72 103.05 109.13 107.23 NA [8,] 98.29 101.10 103.47 104.66 110.28 109.49 NA [9,] 98.20 101.10 102.98 104.46 110.17 109.04 NA [10,] 98.71 100.93 102.68 104.95 109.99 109.02 NA [11,] 98.54 100.85 102.90 105.85 109.26 109.23 NA [12,] 98.20 100.93 103.03 106.23 109.11 109.46 NA > darr [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] 1.79 2.14 2.28 2.40 2.58 2.47 NA [2,] 0.08 0.59 -0.07 -0.01 0.79 -0.61 NA [3,] 0.52 0.17 0.57 0.52 0.22 0.32 NA [4,] 0.34 0.17 0.36 -0.12 0.94 -0.12 NA [5,] -0.09 0.34 0.08 0.08 0.76 -0.12 NA [6,] -1.02 -1.02 -1.10 -1.11 -1.02 -1.77 NA [7,] 1.62 1.79 1.75 1.61 1.15 2.26 NA [8,] -0.09 0.00 -0.49 -0.20 -0.11 -0.45 NA [9,] 0.51 -0.17 -0.30 0.49 -0.18 -0.02 NA [10,] -0.17 -0.08 0.22 0.90 -0.73 0.21 NA [11,] -0.34 0.08 0.13 0.38 -0.15 0.23 NA [12,] -1.28 -1.33 -1.74 -1.37 -2.05 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/rcomp/tmp/1qcdv1289748441.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/rcomp/tmp/2qcdv1289748441.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/rcomp/tmp/3jmvz1289748441.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/rcomp/tmp/4jmvz1289748441.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] [1,] 95.050 96.840 96.920 97.44 97.78 97.69 96.670 98.290 98.20 [2,] 96.920 99.060 99.650 99.82 99.99 100.33 99.310 101.100 101.10 [3,] 100.445 102.785 102.745 103.29 103.41 103.49 102.385 104.065 103.72 [4,] 104.860 107.440 108.230 108.45 109.12 109.00 107.230 109.490 109.04 [5,] 107.060 109.530 108.920 109.24 109.39 110.15 109.130 110.280 110.17 [,10] [,11] [,12] [1,] 98.710 98.540 98.20 [2,] 100.930 100.850 100.93 [3,] 103.815 104.375 104.63 [4,] 109.020 109.230 109.11 [5,] 109.990 109.260 109.46 $n [1] 6 6 6 6 6 6 6 6 6 6 6 6 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] 95.32344 97.37963 97.21062 97.72337 97.52086 97.89757 97.27634 [2,] 105.56656 108.19037 108.27938 108.85663 109.29914 109.08243 107.49366 [,8] [,9] [,10] [,11] [,12] [1,] 98.65318 98.59844 98.59669 98.96963 99.35364 [2,] 109.47682 108.84156 109.03331 109.78037 109.90636 $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(95.05, 96.92, 100.445, 104.86, 107.06, 96.84, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/rcomp/tmp/5jmvz1289748441.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,] 1.79 -0.610 0.17 -0.120 -0.12 -1.11 1.610 -0.490 -0.300 -0.730 -0.340 [2,] 2.14 -0.070 0.22 -0.120 -0.09 -1.11 1.610 -0.450 -0.180 -0.170 -0.150 [3,] 2.34 0.035 0.42 0.255 0.08 -1.06 1.685 -0.155 -0.095 0.065 0.105 [4,] 2.47 0.590 0.52 0.360 0.34 -1.02 1.790 -0.090 0.490 0.220 0.230 [5,] 2.58 0.790 0.57 0.940 0.76 -1.02 1.790 0.000 0.510 0.220 0.380 [,12] [1,] -2.05 [2,] -1.74 [3,] -1.37 [4,] -1.33 [5,] -1.28 $n [1] 6 6 6 6 6 6 6 6 6 6 6 5 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] 2.127139 -0.3907213 0.2264903 -0.0546155 -0.1973639 -1.118053 1.568894 [2,] 2.552861 0.4607213 0.6135097 0.5646155 0.3573639 -1.001947 1.801106 [,8] [,9] [,10] [,11] [,12] [1,] -0.38721163 -0.5271716 -0.1865626 -0.1401123 -1.659705 [2,] 0.07721163 0.3371716 0.3165626 0.3501123 -1.080295 $out [1] -1.77 1.15 2.26 0.90 $group [1] 6 7 7 10 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" "11" "12" Warning message: In bxp(list(stats = c(1.79000000000001, 2.14, 2.34000000000000, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/rcomp/tmp/6bdu21289748441.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] [1,] 95.050 99.06 101.720 103.050 107.440 108.92 NA [2,] 96.880 99.48 101.845 103.685 108.340 108.96 NA [3,] 97.735 100.16 102.710 104.180 109.195 109.08 NA [4,] 98.245 100.93 102.940 104.805 110.070 109.35 NA [5,] 98.710 101.10 103.470 106.230 110.280 109.53 NA $n [1] 12 12 12 12 12 12 0 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] 97.11241 99.49865 102.2106 103.6692 108.4059 108.9021 NA [2,] 98.35759 100.82135 103.2094 104.6908 109.9841 109.2579 NA $out [1] 96.92 99.60 101.29 104.86 107.06 107.23 $group [1] 2 3 4 5 6 6 $names [1] "1" "2" "3" "4" "5" "6" NA Warning message: In bxp(list(stats = c(95.05, 96.88, 97.735, 98.245, 98.71, 99.06, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/rcomp/tmp/7bdu21289748441.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,] 102.8517 102.385 103.0487 [2,] 103.1375 102.765 103.3875 [3,] 103.9375 103.450 104.3200 [4,] 104.4092 103.940 104.8031 [5,] 104.5483 104.630 104.9875 $n [1] 12 12 12 $conf [,1] [,2] [,3] [1,] 103.3575 102.9141 103.6743 [2,] 104.5175 103.9859 104.9657 $out [1] 100.7967 100.4450 100.7788 $group [1] 1 2 3 $names [1] "mean" "median" "midrange" Warning message: In bxp(list(stats = c(102.851666666667, 103.1375, 103.9375, 104.409166666667, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > > try(system("convert tmp/1qcdv1289748441.ps tmp/1qcdv1289748441.png",intern=TRUE)) character(0) > try(system("convert tmp/2qcdv1289748441.ps tmp/2qcdv1289748441.png",intern=TRUE)) character(0) > try(system("convert tmp/3jmvz1289748441.ps tmp/3jmvz1289748441.png",intern=TRUE)) character(0) > try(system("convert tmp/4jmvz1289748441.ps tmp/4jmvz1289748441.png",intern=TRUE)) character(0) > try(system("convert tmp/5jmvz1289748441.ps tmp/5jmvz1289748441.png",intern=TRUE)) character(0) > try(system("convert tmp/6bdu21289748441.ps tmp/6bdu21289748441.png",intern=TRUE)) character(0) > try(system("convert tmp/7bdu21289748441.ps tmp/7bdu21289748441.png",intern=TRUE)) character(0) > > > proc.time() user system elapsed 1.980 1.310 3.264