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(91.46,90.24,93.90,96.34,93.90,86.59,75.61,70.73,74.39,84.15,89.02,87.80,74.39,70.73,74.39,78.05,82.93,82.93,79.27,75.61,76.83,78.05,80.49,81.71,78.05,82.93,85.37,84.15,86.59,87.80,86.59,85.37,84.15,81.71,80.49,84.15,89.02,96.34,100.00,100.00,100.00,98.78,96.34,93.90,93.90,92.68,91.46,91.46,86.59,91.46,91.46,95.12,95.12,95.12,92.68,91.46,93.90,98.78,97.56,92.68,80.49,79.27,82.93,91.46,97.56,100.00,98.78,96.34,96.34,92.68,91.46,92.68,89.02,91.46,92.68,91.46,92.68,95.12,96.34,95.12,91.46,80.49,76.83,76.83,73.17,76.83,78.05,76.83,76.83,78.05,81.71,81.71,82.93,75.61,70.73,68.29,65.85,69.51,70.73,67.07,65.85,65.85,65.85,67.07,68.29,69.51,70.73,65.85,59.76,63.41,67.07,71.95,76.83,79.27,78.05,78.05,80.49,82.93,87.80) > 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] 119 > (np <- floor(n / par1)) [1] 9 > 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] 10 10 10 10 10 10 10 10 10 10 10 9 > arr [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [,9] [,10] [1,] 91.46 74.39 78.05 89.02 86.59 80.49 89.02 73.17 65.85 59.76 [2,] 90.24 70.73 82.93 96.34 91.46 79.27 91.46 76.83 69.51 63.41 [3,] 93.90 74.39 85.37 100.00 91.46 82.93 92.68 78.05 70.73 67.07 [4,] 96.34 78.05 84.15 100.00 95.12 91.46 91.46 76.83 67.07 71.95 [5,] 93.90 82.93 86.59 100.00 95.12 97.56 92.68 76.83 65.85 76.83 [6,] 86.59 82.93 87.80 98.78 95.12 100.00 95.12 78.05 65.85 79.27 [7,] 75.61 79.27 86.59 96.34 92.68 98.78 96.34 81.71 65.85 78.05 [8,] 70.73 75.61 85.37 93.90 91.46 96.34 95.12 81.71 67.07 78.05 [9,] 74.39 76.83 84.15 93.90 93.90 96.34 91.46 82.93 68.29 80.49 [10,] 84.15 78.05 81.71 92.68 98.78 92.68 80.49 75.61 69.51 82.93 [11,] 89.02 80.49 80.49 91.46 97.56 91.46 76.83 70.73 70.73 87.80 [12,] 87.80 81.71 84.15 91.46 92.68 92.68 76.83 68.29 65.85 NA > darr [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [,9] [,10] [1,] -1.22 -3.66 4.88 7.32 4.87 -1.22 2.44 3.66 3.66 3.65 [2,] 3.66 3.66 2.44 3.66 0.00 3.66 1.22 1.22 1.22 3.66 [3,] 2.44 3.66 -1.22 0.00 3.66 8.53 -1.22 -1.22 -3.66 4.88 [4,] -2.44 4.88 2.44 0.00 0.00 6.10 1.22 0.00 -1.22 4.88 [5,] -7.31 0.00 1.21 -1.22 0.00 2.44 2.44 1.22 0.00 2.44 [6,] -10.98 -3.66 -1.21 -2.44 -2.44 -1.22 1.22 3.66 0.00 -1.22 [7,] -4.88 -3.66 -1.22 -2.44 -1.22 -2.44 -1.22 0.00 1.22 0.00 [8,] 3.66 1.22 -1.22 0.00 2.44 0.00 -3.66 1.22 1.22 2.44 [9,] 9.76 1.22 -2.44 -1.22 4.88 -3.66 -10.97 -7.32 1.22 2.44 [10,] 4.87 2.44 -1.22 -1.22 -1.22 -1.22 -3.66 -4.88 1.22 4.87 [11,] -1.22 1.22 3.66 0.00 -4.88 1.22 0.00 -2.44 -4.88 NA [12,] -13.41 -3.66 4.87 -4.87 -12.19 -3.66 -3.66 -2.44 -6.09 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/10d0h1258138385.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/2w4ce1258138385.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/3doqn1258138385.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/407aw1258138385.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] [1,] 59.76 63.41 67.07 67.070 65.850 65.850 65.85 67.07 68.29 69.51 70.730 [2,] 73.17 70.73 74.39 76.830 76.830 79.270 78.05 75.61 76.83 78.05 76.830 [3,] 79.27 81.10 84.15 87.805 89.635 87.195 84.15 83.54 83.54 82.32 84.145 [4,] 89.02 91.46 92.68 95.120 95.120 95.120 96.34 93.90 93.90 92.68 91.460 [5,] 91.46 96.34 100.00 100.000 100.000 100.000 98.78 96.34 96.34 98.78 97.560 [,12] [1,] 65.85 [2,] 76.83 [3,] 84.15 [4,] 91.46 [5,] 92.68 $n [1] 10 10 10 10 10 10 10 10 10 10 10 9 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 71.35071 70.74247 75.01159 78.66659 80.49659 79.27571 75.01159 74.40159 [2,] 87.18929 91.45753 93.28841 96.94341 98.77341 95.11429 93.28841 92.67841 [,9] [,10] [,11] [,12] [1,] 75.01115 75.01027 76.83527 76.44487 [2,] 92.06885 89.62973 91.45473 91.85513 $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(59.76, 73.17, 79.27, 89.02, 91.46, 63.41, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/58tdw1258138385.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,] -3.660 0.00 -3.66 -2.44 -1.220 -3.66 -4.88 -1.22 -10.97 -4.88 -4.88 -6.09 [2,] -1.220 1.22 -1.22 0.00 0.000 -2.44 -2.44 0.00 -3.66 -1.22 -2.44 -6.09 [3,] 3.655 3.05 1.22 0.61 0.605 -1.22 -1.22 1.22 0.00 -1.22 0.00 -3.66 [4,] 4.870 3.66 3.66 4.88 2.440 0.00 0.00 2.44 2.44 2.44 1.22 -3.66 [5,] 7.320 3.66 8.53 6.10 2.440 3.66 1.22 3.66 9.76 4.87 3.66 -2.44 $n [1] 10 10 10 10 10 10 10 10 10 10 9 9 $conf [,1] [,2] [,3] [,4] [,5] [,6] [1,] 0.6121932 1.830879 -1.218243 -1.828243 -0.6141213 -2.4391212835 [2,] 6.6978068 4.269121 3.658243 3.048243 1.8241213 -0.0008787165 [,7] [,8] [,9] [,10] [,11] [,12] [1,] -2.4391212835 0.0008787165 -3.047803 -3.0486819 -1.9276 -4.9398 [2,] -0.0008787165 2.4391212835 3.047803 0.6086819 1.9276 -2.3802 $out [1] -7.31 -10.98 -3.66 -13.41 4.87 -12.19 $group [1] 5 6 8 12 12 12 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" "11" "12" Warning message: In bxp(list(stats = c(-3.66, -1.22, 3.655, 4.86999999999999, 7.32, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/62xc51258138385.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] [1,] 70.73 70.73 78.05 89.02 86.59 79.270 76.830 68.29 65.85 59.76 [2,] 79.88 75.00 82.32 92.07 91.46 87.195 84.755 74.39 65.85 69.51 [3,] 88.41 78.05 84.15 95.12 93.29 92.680 91.460 76.83 67.07 78.05 [4,] 92.68 81.10 85.98 99.39 95.12 96.950 93.900 79.88 69.51 79.88 [5,] 96.34 82.93 87.80 100.00 98.78 100.000 96.340 82.93 70.73 87.80 $n [1] 12 12 12 12 12 12 12 12 12 11 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 82.57183 75.26775 82.48065 91.7813 91.62065 88.23068 87.2889 74.32597 [2,] 94.24817 80.83225 85.81935 98.4587 94.95935 97.12932 95.6311 79.33403 [,9] [,10] [1,] 65.40065 73.10986 [2,] 68.73935 82.99014 $out numeric(0) $group numeric(0) $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" NA Warning message: In bxp(list(stats = c(70.73, 79.88, 88.41, 92.68, 96.34, 70.73, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/7zrpd1258138385.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,] 81.21800 79.2700 80.94375 [2,] 82.95967 82.9300 83.99250 [3,] 83.65850 84.1475 84.67937 [4,] 85.18250 85.6725 86.12750 [5,] 86.95100 89.6350 87.65250 $n [1] 12 12 12 $conf [,1] [,2] [,3] [1,] 82.64465 82.89663 83.70559 [2,] 84.67235 85.39837 85.65316 $out [1] 78.78 $group [1] 1 $names [1] "mean" "median" "midrange" Warning message: In bxp(list(stats = c(81.218, 82.9596666666667, 83.6585, 85.1825, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > > system("convert tmp/10d0h1258138385.ps tmp/10d0h1258138385.png") > system("convert tmp/2w4ce1258138385.ps tmp/2w4ce1258138385.png") > system("convert tmp/3doqn1258138385.ps tmp/3doqn1258138385.png") > system("convert tmp/407aw1258138385.ps tmp/407aw1258138385.png") > system("convert tmp/58tdw1258138385.ps tmp/58tdw1258138385.png") > system("convert tmp/62xc51258138385.ps tmp/62xc51258138385.png") > system("convert tmp/7zrpd1258138385.ps tmp/7zrpd1258138385.png") > > > proc.time() user system elapsed 1.214 0.964 2.882