R version 2.12.2 (2011-02-25) Copyright (C) 2011 The R Foundation for Statistical Computing ISBN 3-900051-07-0 Platform: x86_64-redhat-linux-gnu (64-bit) 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(12.94,12.79,12.82,12.85,12.85,12.72,12.62,12.67,12.6,12.54,12.64,12.67,12.51,12.59,12.52,12.5,12.58,12.51,12.47,12.44,12.51,12.27,12.51,12.41,12.35,12.39,12.31,12.31,12.21,12.1,12.01,11.85,12.12,11.96,11.99,11.93,11.91,11.83,11.92,11.86,11.94,11.87,11.86,11.92,11.82,11.85,11.77,11.82,11.61,11.56,11.45,11.4,11.38,11.33,11.19,11.15,10.98,10.92,10.99,11,10.9,10.99,11.04,11.03,10.99,11,10.87,10.88,10.91,10.92,10.83,10.9,10.82,10.79,10.77,10.72,10.71,10.63,10.61,10.57,10.65,10.57,10.57,10.57,10.52,10.43,10.35,10.2,10.2,10.17,10.14,10.05,10.12,10.12) > 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] 94 > (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 8 8 8 8 8 8 8 8 8 7 7 > arr [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 12.94 12.51 12.35 11.91 11.61 10.90 10.82 10.52 [2,] 12.79 12.59 12.39 11.83 11.56 10.99 10.79 10.43 [3,] 12.82 12.52 12.31 11.92 11.45 11.04 10.77 10.35 [4,] 12.85 12.50 12.31 11.86 11.40 11.03 10.72 10.20 [5,] 12.85 12.58 12.21 11.94 11.38 10.99 10.71 10.20 [6,] 12.72 12.51 12.10 11.87 11.33 11.00 10.63 10.17 [7,] 12.62 12.47 12.01 11.86 11.19 10.87 10.61 10.14 [8,] 12.67 12.44 11.85 11.92 11.15 10.88 10.57 10.05 [9,] 12.60 12.51 12.12 11.82 10.98 10.91 10.65 10.12 [10,] 12.54 12.27 11.96 11.85 10.92 10.92 10.57 10.12 [11,] 12.64 12.51 11.99 11.77 10.99 10.83 10.57 NA [12,] 12.67 12.41 11.93 11.82 11.00 10.90 10.57 NA > darr [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] -0.15 0.08 0.04 -0.08 -0.05 0.09 -0.03 -0.09 [2,] 0.03 -0.07 -0.08 0.09 -0.11 0.05 -0.02 -0.08 [3,] 0.03 -0.02 0.00 -0.06 -0.05 -0.01 -0.05 -0.15 [4,] 0.00 0.08 -0.10 0.08 -0.02 -0.04 -0.01 0.00 [5,] -0.13 -0.07 -0.11 -0.07 -0.05 0.01 -0.08 -0.03 [6,] -0.10 -0.04 -0.09 -0.01 -0.14 -0.13 -0.02 -0.03 [7,] 0.05 -0.03 -0.16 0.06 -0.04 0.01 -0.04 -0.09 [8,] -0.07 0.07 0.27 -0.10 -0.17 0.03 0.08 0.07 [9,] -0.06 -0.24 -0.16 0.03 -0.06 0.01 -0.08 0.00 [10,] 0.10 0.24 0.03 -0.08 0.07 -0.09 0.00 NA [11,] 0.03 -0.10 -0.06 0.05 0.01 0.07 0.00 NA [12,] -0.16 -0.06 -0.02 -0.21 -0.10 -0.08 -0.05 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/wessaorg/rcomp/tmp/1a7wa1301992016.ps",horizontal=F,onefile=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/wessaorg/rcomp/tmp/2ctyl1301992016.ps",horizontal=F,onefile=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/wessaorg/rcomp/tmp/33qw51301992016.ps",horizontal=F,onefile=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/wessaorg/rcomp/tmp/4hhjg1301992016.ps",horizontal=F,onefile=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,] 10.52 10.430 10.350 10.200 10.200 10.170 10.140 10.050 10.120 10.120 10.57 [2,] 10.86 10.890 10.905 10.875 10.850 10.815 10.740 10.725 10.780 10.745 10.91 [3,] 11.76 11.695 11.685 11.630 11.660 11.600 11.525 11.500 11.400 11.385 11.77 [4,] 12.43 12.490 12.415 12.405 12.395 12.305 12.240 12.180 12.315 12.115 12.25 [5,] 12.94 12.790 12.820 12.850 12.850 12.720 12.620 12.670 12.600 12.540 12.64 [,12] [1,] 10.57 [2,] 10.95 [3,] 11.82 [4,] 12.17 [5,] 12.67 $n [1] 8 8 8 8 8 8 8 8 8 8 7 7 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 10.88298 10.80122 10.84149 10.77532 10.79694 10.76766 10.68708 10.68722 [2,] 12.63702 12.58878 12.52851 12.48468 12.52306 12.43234 12.36292 12.31278 [,9] [,10] [,11] [,12] [1,] 10.54253 10.61970 10.96977 11.09144 [2,] 12.25747 12.15030 12.57023 12.54856 $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(10.52, 10.86, 11.76, 12.43, 12.94, 10.43, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/wessaorg/rcomp/tmp/5hjjj1301992016.ps",horizontal=F,onefile=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] [1,] -0.150 -0.110 -0.060 -0.100 -0.130 -0.140 -0.160 -0.170 -0.240 -0.090 [2,] -0.085 -0.080 -0.055 -0.030 -0.095 -0.115 -0.065 -0.085 -0.120 -0.040 [3,] -0.040 -0.045 -0.035 -0.005 -0.070 -0.065 -0.035 0.050 -0.060 0.030 [4,] 0.060 0.040 -0.005 0.040 -0.040 -0.025 0.030 0.075 0.005 0.085 [5,] 0.090 0.090 0.030 0.080 0.010 -0.010 0.060 0.270 0.030 0.240 [,11] [,12] [1,] -0.10 -0.210 [2,] -0.03 -0.130 [3,] 0.01 -0.080 [4,] 0.04 -0.055 [5,] 0.07 -0.020 $n [1] 8 8 8 8 8 8 8 8 8 7 7 7 $conf [,1] [,2] [,3] [,4] [,5] [,6] [1,] -0.12099908 -0.11203372 -0.062930718 -0.04410300 -0.10072379 -0.11527529 [2,] 0.04099908 0.02203372 -0.007069282 0.03410300 -0.03927621 -0.01472471 [,7] [,8] [,9] [,10] [,11] [,12] [1,] -0.08806836 -0.0393783 -0.129826795 -0.04464798 -0.03180287 -0.12478879 [2,] 0.01806836 0.1393783 0.009826795 0.10464798 0.05180287 -0.03521121 $out [1] -0.15 $group [1] 3 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" "11" "12" Warning message: In bxp(list(stats = c(-0.150000000000000, -0.085, -0.04, 0.0600000000000005, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/wessaorg/rcomp/tmp/6cok91301992016.ps",horizontal=F,onefile=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,] 12.540 12.410 11.850 11.770 10.920 10.830 10.570 10.050 [2,] 12.630 12.455 11.975 11.825 10.995 10.890 10.570 10.120 [3,] 12.695 12.510 12.110 11.860 11.260 10.915 10.640 10.185 [4,] 12.835 12.515 12.310 11.915 11.425 10.995 10.745 10.350 [5,] 12.940 12.590 12.390 11.940 11.610 11.040 10.820 10.520 $n [1] 12 12 12 12 12 12 12 10 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 12.60150 12.48263 11.95720 11.81895 11.06387 10.86711 10.56018 10.07008 [2,] 12.78850 12.53737 12.26280 11.90105 11.45613 10.96289 10.71982 10.29992 $out [1] 12.27 $group [1] 2 $names [1] "1" "2" "3" "4" "5" "6" "7" NA Warning message: In bxp(list(stats = c(12.54, 12.63, 12.695, 12.835, 12.94, 12.41, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/wessaorg/rcomp/tmp/70rk21301992016.ps",horizontal=F,onefile=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.39375 11.3850 11.42625 [2,] 11.46750 11.5125 11.49812 [3,] 11.60813 11.6450 11.57000 [4,] 11.63089 11.7275 11.64500 [5,] 11.69500 11.8200 11.69000 $n [1] 12 12 12 $conf [,1] [,2] [,3] [1,] 11.53360 11.54694 11.50301 [2,] 11.68265 11.74306 11.63699 $out numeric(0) $group numeric(0) $names [1] "mean" "median" "midrange" Warning message: In bxp(list(stats = c(11.39375, 11.4675, 11.608125, 11.6308928571429, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > > try(system("convert tmp/1a7wa1301992016.ps tmp/1a7wa1301992016.png",intern=TRUE)) character(0) > try(system("convert tmp/2ctyl1301992016.ps tmp/2ctyl1301992016.png",intern=TRUE)) character(0) > try(system("convert tmp/33qw51301992016.ps tmp/33qw51301992016.png",intern=TRUE)) character(0) > try(system("convert tmp/4hhjg1301992016.ps tmp/4hhjg1301992016.png",intern=TRUE)) character(0) > try(system("convert tmp/5hjjj1301992016.ps tmp/5hjjj1301992016.png",intern=TRUE)) character(0) > try(system("convert tmp/6cok91301992016.ps tmp/6cok91301992016.png",intern=TRUE)) character(0) > try(system("convert tmp/70rk21301992016.ps tmp/70rk21301992016.png",intern=TRUE)) character(0) > > > proc.time() user system elapsed 1.530 0.230 1.848