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(11.73,11.74,11.65,11.38,11.53,11.75,11.82,11.83,11.63,11.55,11.4,11.4,11.63,11.46,11.35,11.7,11.52,11.64,11.9,11.73,11.7,11.54,11.97,11.64,11.98,11.79,11.66,11.96,11.83,12.36,12.53,12.55,12.53,12.24,12.34,12.05,12.22,12.23,11.92,12.13,12.1,12.15,12.23,12.08,12.02,11.93,12.16,11.87,11.93,11.79,11.43,11.63,11.93,11.89,11.83,11.59,12.04,11.81,11.9,11.72,11.91,11.94,11.91,11.84,12.01,11.89,11.8,11.7,11.5,11.76,11.61,11.27,11.64,11.39,11.54,11.62,11.59,11.44,11.31,11.56,11.4,11.51,11.5,11.24,11.8) > 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] 85 > (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] 8 7 7 7 7 7 7 7 7 7 7 7 > arr [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 11.73 11.63 11.98 12.22 11.93 11.91 11.64 11.8 [2,] 11.74 11.46 11.79 12.23 11.79 11.94 11.39 NA [3,] 11.65 11.35 11.66 11.92 11.43 11.91 11.54 NA [4,] 11.38 11.70 11.96 12.13 11.63 11.84 11.62 NA [5,] 11.53 11.52 11.83 12.10 11.93 12.01 11.59 NA [6,] 11.75 11.64 12.36 12.15 11.89 11.89 11.44 NA [7,] 11.82 11.90 12.53 12.23 11.83 11.80 11.31 NA [8,] 11.83 11.73 12.55 12.08 11.59 11.70 11.56 NA [9,] 11.63 11.70 12.53 12.02 12.04 11.50 11.40 NA [10,] 11.55 11.54 12.24 11.93 11.81 11.76 11.51 NA [11,] 11.40 11.97 12.34 12.16 11.90 11.61 11.50 NA [12,] 11.40 11.64 12.05 11.87 11.72 11.27 11.24 NA > darr [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 0.01 -0.17 -0.19 0.01 -0.14 0.03 -0.25 NA [2,] -0.09 -0.11 -0.13 -0.31 -0.36 -0.03 0.15 NA [3,] -0.27 0.35 0.30 0.21 0.20 -0.07 0.08 NA [4,] 0.15 -0.18 -0.13 -0.03 0.30 0.17 -0.03 NA [5,] 0.22 0.12 0.53 0.05 -0.04 -0.12 -0.15 NA [6,] 0.07 0.26 0.17 0.08 -0.06 -0.09 -0.13 NA [7,] 0.01 -0.17 0.02 -0.15 -0.24 -0.10 0.25 NA [8,] -0.20 -0.03 -0.02 -0.06 0.45 -0.20 -0.16 NA [9,] -0.08 -0.16 -0.29 -0.09 -0.23 0.26 0.11 NA [10,] -0.15 0.43 0.10 0.23 0.09 -0.15 -0.01 NA [11,] 0.00 -0.33 -0.29 -0.29 -0.18 -0.34 -0.26 NA [12,] 0.23 0.34 0.17 0.06 0.19 0.37 0.56 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/166ac1249480493.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/2q91a1249480493.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/38x2x1249480493.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/41vcm1249480493.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] [1,] 11.630 11.390 11.350 11.380 11.52 11.440 11.800 11.560 11.400 11.510 [2,] 11.685 11.600 11.485 11.625 11.56 11.695 11.810 11.645 11.565 11.545 [3,] 11.855 11.790 11.650 11.700 11.83 11.890 11.830 11.730 11.700 11.760 [4,] 11.955 11.865 11.785 11.900 11.97 12.020 12.065 11.955 12.030 11.870 [5,] 12.220 12.230 11.920 12.130 12.10 12.360 12.230 12.080 12.530 12.240 [,11] [,12] [1,] 11.400 11.240 [2,] 11.555 11.335 [3,] 11.900 11.640 [4,] 12.065 11.795 [5,] 12.340 12.050 $n [1] 8 7 7 7 7 7 7 7 7 7 7 7 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 11.70417 11.63175 11.47084 11.53577 11.58515 11.69592 11.67772 11.54487 [2,] 12.00583 11.94825 11.82916 11.86423 12.07485 12.08408 11.98228 11.91513 [,9] [,10] [,11] [,12] [1,] 11.42231 11.56592 11.59544 11.36530 [2,] 11.97769 11.95408 12.20456 11.91470 $out [1] 12.53 11.31 12.55 $group [1] 7 7 8 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" "11" "12" Warning message: In bxp(list(stats = c(11.63, 11.685, 11.855, 11.955, 12.22, 11.39, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/58c1b1249480493.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.25 -0.36 -0.270 -0.18 -0.15 -0.130 -0.240 -0.200 -0.290 -0.150 -0.34 [2,] -0.18 -0.22 0.005 -0.08 -0.08 -0.075 -0.160 -0.180 -0.195 -0.080 -0.31 [3,] -0.14 -0.11 0.200 -0.03 0.05 0.070 -0.100 -0.060 -0.090 0.090 -0.29 [4,] 0.01 -0.06 0.255 0.16 0.17 0.125 0.015 -0.025 0.015 0.165 -0.22 [5,] 0.03 0.15 0.350 0.30 0.53 0.260 0.250 -0.020 0.260 0.430 -0.18 [,12] [1,] 0.060 [2,] 0.180 [3,] 0.230 [4,] 0.355 [5,] 0.560 $n [1] 7 7 7 7 7 7 7 7 7 7 7 7 $conf [,1] [,2] [,3] [,4] [,5] [,6] [1,] -0.25346493 -0.20554942 0.05070403 -0.1733241 -0.09929597 -0.04943677 [2,] -0.02653507 -0.01445058 0.34929597 0.1133241 0.19929597 0.18943677 [,7] [,8] [,9] [,10] [,11] [,12] [1,] -0.204507177 -0.1525635 -0.21540861 -0.05631005 -0.3437465 0.1254928 [2,] 0.004507177 0.0325635 0.03540861 0.23631005 -0.2362535 0.3345072 $out [1] 0.45 0.00 $group [1] 8 11 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" "11" "12" Warning message: In bxp(list(stats = c(-0.25, -0.180000000000001, -0.140000000000001, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/6v5ah1249480493.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,] 11.380 11.350 11.660 11.870 11.430 11.500 11.240 11.8 [2,] 11.465 11.530 11.895 11.975 11.675 11.655 11.395 11.8 [3,] 11.640 11.640 12.145 12.115 11.820 11.820 11.505 11.8 [4,] 11.745 11.715 12.445 12.190 11.915 11.910 11.575 11.8 [5,] 11.830 11.970 12.550 12.230 12.040 12.010 11.640 11.8 $n [1] 12 12 12 12 12 12 12 1 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 11.51229 11.55562 11.89414 12.01694 11.71053 11.70369 11.4229 11.8 [2,] 11.76771 11.72438 12.39586 12.21306 11.92947 11.93631 11.5871 11.8 $out [1] 11.27 $group [1] 6 $names [1] "1" "2" "3" "4" "5" "6" "7" NA Warning message: In bxp(list(stats = c(11.38, 11.465, 11.64, 11.745, 11.83, 11.35, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/7rvqj1249480493.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,] 11.63714 11.6400 11.63500 [2,] 11.75714 11.7000 11.72000 [3,] 11.80929 11.7750 11.78125 [4,] 11.85893 11.8425 11.81750 [5,] 11.91714 11.9000 11.93750 $n [1] 12 12 12 $conf [,1] [,2] [,3] [1,] 11.76286 11.71000 11.73678 [2,] 11.85571 11.84000 11.82572 $out [1] 11.59857 11.56500 $group [1] 1 3 $names [1] "mean" "median" "midrange" Warning message: In bxp(list(stats = c(11.6371428571429, 11.7571428571429, 11.8092857142857, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > > system("convert tmp/166ac1249480493.ps tmp/166ac1249480493.png") > system("convert tmp/2q91a1249480493.ps tmp/2q91a1249480493.png") > system("convert tmp/38x2x1249480493.ps tmp/38x2x1249480493.png") > system("convert tmp/41vcm1249480493.ps tmp/41vcm1249480493.png") > system("convert tmp/58c1b1249480493.ps tmp/58c1b1249480493.png") > system("convert tmp/6v5ah1249480493.ps tmp/6v5ah1249480493.png") > system("convert tmp/7rvqj1249480493.ps tmp/7rvqj1249480493.png") > > > proc.time() user system elapsed 1.186 0.935 2.760