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(0.88,1.03,0.69,0.71,1.11,1.05,1.03,0.65,0.59,0.77,0.9,1.26,0.96,0.83,0.87,0.79,1.12,0.88,0.64,0.64,0.58,0.5,0.99,1.07,0.89,0.89,0.83,0.86,0.9,1.12,0.88,0.88,0.89,0.82,0.88,0.81,0.88,0.76,1.13,0.85,1.45,1.55,0.71,0.81,0.83,0.73,0.9,0.94,1.78,0.88,1.04,0.83,1.41,0.96,1.3,0.83,1.4,0.91,0.87,0.97,1.19,1.23,1.33,1.17,1.09,0.63,0.89,0.63,1.51,0.97,0.84,0.92,0.95,0.73,1.02,0.79,1.27,0.95,0.75,0.52,0.95,0.82,0.76,1.24,0.94,1.04,1.81,0.95,1.39,0.86,1.15,1.51,0.6,0.72,1.1,1.62,1.84,1.73,1.36,1.07,1,1.49,0.9,1.43,1.54,0.81,1.61,1.3,1.4,1.03,0.79,1.11,1.15,1.03,1.59,1.11,1.33,0.93,1.07,1.14,1.12,0.86,0.82,1.02,1.07,1.31,0.98,0.89,0.8,0.8,0.78,0.97) > 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] 132 > (np <- floor(n / par1)) [1] 11 > 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] 11 11 11 11 11 11 11 11 11 11 11 11 > arr [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [,9] [,10] [,11] [,12] [1,] 0.88 0.96 0.89 0.88 1.78 1.19 0.95 0.94 1.84 1.40 1.12 NA [2,] 1.03 0.83 0.89 0.76 0.88 1.23 0.73 1.04 1.73 1.03 0.86 NA [3,] 0.69 0.87 0.83 1.13 1.04 1.33 1.02 1.81 1.36 0.79 0.82 NA [4,] 0.71 0.79 0.86 0.85 0.83 1.17 0.79 0.95 1.07 1.11 1.02 NA [5,] 1.11 1.12 0.90 1.45 1.41 1.09 1.27 1.39 1.00 1.15 1.07 NA [6,] 1.05 0.88 1.12 1.55 0.96 0.63 0.95 0.86 1.49 1.03 1.31 NA [7,] 1.03 0.64 0.88 0.71 1.30 0.89 0.75 1.15 0.90 1.59 0.98 NA [8,] 0.65 0.64 0.88 0.81 0.83 0.63 0.52 1.51 1.43 1.11 0.89 NA [9,] 0.59 0.58 0.89 0.83 1.40 1.51 0.95 0.60 1.54 1.33 0.80 NA [10,] 0.77 0.50 0.82 0.73 0.91 0.97 0.82 0.72 0.81 0.93 0.80 NA [11,] 0.90 0.99 0.88 0.90 0.87 0.84 0.76 1.10 1.61 1.07 0.78 NA [12,] 1.26 1.07 0.81 0.94 0.97 0.92 1.24 1.62 1.30 1.14 0.97 NA > darr [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [,9] [,10] [,11] [,12] [1,] 0.15 -0.13 0.00 -0.12 -0.90 0.04 -0.22 0.10 -0.11 -0.37 -0.26 NA [2,] -0.34 0.04 -0.06 0.37 0.16 0.10 0.29 0.77 -0.37 -0.24 -0.04 NA [3,] 0.02 -0.08 0.03 -0.28 -0.21 -0.16 -0.23 -0.86 -0.29 0.32 0.20 NA [4,] 0.40 0.33 0.04 0.60 0.58 -0.08 0.48 0.44 -0.07 0.04 0.05 NA [5,] -0.06 -0.24 0.22 0.10 -0.45 -0.46 -0.32 -0.53 0.49 -0.12 0.24 NA [6,] -0.02 -0.24 -0.24 -0.84 0.34 0.26 -0.20 0.29 -0.59 0.56 -0.33 NA [7,] -0.38 0.00 0.00 0.10 -0.47 -0.26 -0.23 0.36 0.53 -0.48 -0.09 NA [8,] -0.06 -0.06 0.01 0.02 0.57 0.88 0.43 -0.91 0.11 0.22 -0.09 NA [9,] 0.18 -0.08 -0.07 -0.10 -0.49 -0.54 -0.13 0.12 -0.73 -0.40 0.00 NA [10,] 0.13 0.49 0.06 0.17 -0.04 -0.13 -0.06 0.38 0.80 0.14 -0.02 NA [11,] 0.36 0.08 -0.07 0.04 0.10 0.08 0.48 0.52 -0.31 0.07 0.19 NA [12,] -0.30 -0.18 0.07 0.84 0.22 0.03 -0.30 0.22 0.10 -0.02 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/16rhm1247735288.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/2iam31247735288.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/319o51247735288.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/4rl9a1247735288.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,] 0.880 0.730 0.690 0.710 0.90 0.630 0.640 0.520 0.580 0.720 0.760 0.810 [2,] 0.915 0.845 0.825 0.810 1.08 0.915 0.815 0.645 0.700 0.750 0.855 0.955 [3,] 0.960 0.890 1.020 0.860 1.12 1.030 0.900 0.830 0.890 0.810 0.900 1.070 [4,] 1.295 1.035 1.230 1.045 1.33 1.215 1.090 1.000 1.365 0.865 1.030 1.250 [5,] 1.840 1.230 1.810 1.170 1.45 1.550 1.300 1.510 1.540 0.970 1.100 1.620 $n [1] 11 11 11 11 11 11 11 11 11 11 11 11 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] 0.7789726 0.7994863 0.8270629 0.7480488 1.000903 0.8870836 0.7689933 [2,] 1.1410274 0.9805137 1.2129371 0.9719512 1.239097 1.1729164 1.0310067 [,8] [,9] [,10] [,11] [,12] [1,] 0.6608823 0.573202 0.7552154 0.8166321 0.9294656 [2,] 0.9991177 1.206798 0.8647846 0.9833679 1.2105344 $out [1] 1.73 1.59 0.50 1.61 $group [1] 2 7 10 11 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" "11" "12" Warning message: In bxp(list(stats = c(0.88, 0.915, 0.96, 1.295, 1.84, 0.73, 0.845, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/5oj1y1247735288.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.37 -0.370 -0.290 -0.08 -0.530 -0.840 -0.48 -0.090 -0.730 -0.130 -0.070 [2,] -0.24 -0.150 -0.255 0.04 -0.385 -0.285 -0.32 -0.060 -0.445 -0.030 0.055 [3,] -0.12 0.040 -0.160 0.33 -0.120 -0.200 -0.09 0.020 -0.100 0.130 0.080 [4,] 0.02 0.225 0.025 0.46 0.160 0.275 0.05 0.325 -0.035 0.275 0.275 [5,] 0.15 0.770 0.320 0.60 0.490 0.560 0.53 0.880 0.180 0.490 0.520 [,12] [1,] -0.30 [2,] -0.18 [3,] 0.05 [4,] 0.22 [5,] 0.22 $n [1] 11 11 11 11 11 11 11 11 11 11 11 10 $conf [,1] [,2] [,3] [,4] [,5] [,6] [1,] -0.24386086 -0.1386455 -0.29338862 0.1299171 -0.3796314 -0.46677724 [2,] 0.00386086 0.2186455 -0.02661138 0.5300829 0.1396314 0.06677724 [,7] [,8] [,9] [,10] [,11] [,12] [1,] -0.26626353 -0.1634094 -0.29531905 -0.01529832 -0.02480534 -0.1498559 [2,] 0.08626353 0.2034094 0.09531905 0.27529832 0.18480534 0.2498559 $out [1] -0.90 -0.86 -0.91 0.80 -0.31 0.84 $group [1] 1 3 8 10 11 12 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" "11" "12" Warning message: In bxp(list(stats = c(-0.37, -0.24, -0.12, 0.02, 0.15, -0.37, -0.15, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/62gkl1247735288.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] [,10] [,11] [,12] [1,] 0.59 0.500 0.810 0.710 0.830 0.630 0.520 0.60 0.810 0.79 0.780 NA [2,] 0.70 0.640 0.845 0.785 0.875 0.865 0.755 0.90 1.035 1.03 0.810 NA [3,] 0.89 0.850 0.880 0.865 0.965 1.030 0.885 1.07 1.395 1.11 0.930 NA [4,] 1.04 0.975 0.890 1.035 1.350 1.210 0.985 1.45 1.575 1.24 1.045 NA [5,] 1.26 1.120 0.900 1.130 1.780 1.510 1.270 1.81 1.840 1.40 1.310 NA $n [1] 12 12 12 12 12 12 12 12 12 12 12 0 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] 0.7349237 0.6972043 0.8594752 0.7509733 0.7483493 0.8726432 0.7800955 [2,] 1.0450763 1.0027957 0.9005248 0.9790267 1.1816507 1.1873568 0.9899045 [,8] [,9] [,10] [,11] [,12] [1,] 0.8191413 1.148702 1.014218 0.822815 NA [2,] 1.3208587 1.641298 1.205782 1.037185 NA $out [1] 1.12 1.45 1.55 1.59 $group [1] 3 4 4 10 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" "11" NA Warning message: In bxp(list(stats = c(0.59, 0.7, 0.89, 1.04, 1.26, 0.5, 0.64, 0.85, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/7aj9j1247735288.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,] 0.7981818 0.810 0.80750 [2,] 0.9477273 0.875 0.93375 [3,] 1.0013636 0.900 0.99000 [4,] 1.0940909 1.025 1.08375 [5,] 1.1781818 1.120 1.20500 $n [1] 12 12 12 $conf [,1] [,2] [,3] [1,] 0.9346062 0.831584 0.921584 [2,] 1.0681211 0.968416 1.058416 $out numeric(0) $group numeric(0) $names [1] "mean" "median" "midrange" Warning message: In bxp(list(stats = c(0.798181818181818, 0.947727272727273, 1.00136363636364, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > > system("convert tmp/16rhm1247735288.ps tmp/16rhm1247735288.png") > system("convert tmp/2iam31247735288.ps tmp/2iam31247735288.png") > system("convert tmp/319o51247735288.ps tmp/319o51247735288.png") > system("convert tmp/4rl9a1247735288.ps tmp/4rl9a1247735288.png") > system("convert tmp/5oj1y1247735288.ps tmp/5oj1y1247735288.png") > system("convert tmp/62gkl1247735288.ps tmp/62gkl1247735288.png") > system("convert tmp/7aj9j1247735288.ps tmp/7aj9j1247735288.png") > > > proc.time() user system elapsed 1.210 0.955 2.507