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(1.73,1.75,1.75,1.75,1.73,1.74,1.75,1.75,1.34,1.24,1.24,1.26,1.25,1.26,1.26,1.22,1.01,1.03,1.01,1.01,1,0.98,1,1.01,1,1,1,1.03,1.26,1.43,1.61,1.76,1.93,2.16,2.28,2.5,2.63,2.79,3,3.04,3.26,3.5,3.62,3.78,4,4.16,4.29,4.49,4.59,4.79,4.94,4.99,5.24,5.25,5.25,5.25,5.25,5.24,5.25,5.26,5.26,5.25,5.25,5.25,5.26,5.02,4.94,4.76,4.49,4.24,3.94,2.98,2.61,2.28,1.98,2,2.01,2,1.81,0.97,0.39,0.16,0.15,0.22) > 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] 84 > (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] 7 7 7 7 7 7 7 7 7 7 7 7 > arr [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 1.73 1.25 1.00 2.63 4.59 5.26 2.61 NA [2,] 1.75 1.26 1.00 2.79 4.79 5.25 2.28 NA [3,] 1.75 1.26 1.00 3.00 4.94 5.25 1.98 NA [4,] 1.75 1.22 1.03 3.04 4.99 5.25 2.00 NA [5,] 1.73 1.01 1.26 3.26 5.24 5.26 2.01 NA [6,] 1.74 1.03 1.43 3.50 5.25 5.02 2.00 NA [7,] 1.75 1.01 1.61 3.62 5.25 4.94 1.81 NA [8,] 1.75 1.01 1.76 3.78 5.25 4.76 0.97 NA [9,] 1.34 1.00 1.93 4.00 5.25 4.49 0.39 NA [10,] 1.24 0.98 2.16 4.16 5.24 4.24 0.16 NA [11,] 1.24 1.00 2.28 4.29 5.25 3.94 0.15 NA [12,] 1.26 1.01 2.50 4.49 5.26 2.98 0.22 NA > darr [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 0.02 0.01 0.00 0.16 0.20 -0.01 -0.33 NA [2,] 0.00 0.00 0.00 0.21 0.15 0.00 -0.30 NA [3,] 0.00 -0.04 0.03 0.04 0.05 0.00 0.02 NA [4,] -0.02 -0.21 0.23 0.22 0.25 0.01 0.01 NA [5,] 0.01 0.02 0.17 0.24 0.01 -0.24 -0.01 NA [6,] 0.01 -0.02 0.18 0.12 0.00 -0.08 -0.19 NA [7,] 0.00 0.00 0.15 0.16 0.00 -0.18 -0.84 NA [8,] -0.41 -0.01 0.17 0.22 0.00 -0.27 -0.58 NA [9,] -0.10 -0.02 0.23 0.16 -0.01 -0.25 -0.23 NA [10,] 0.00 0.02 0.12 0.13 0.01 -0.30 -0.01 NA [11,] 0.02 0.01 0.22 0.20 0.01 -0.96 0.07 NA [12,] -0.01 -0.01 0.13 0.10 0.00 -0.37 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/1fjod1244120463.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/2nsm31244120463.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/3fo951244120463.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/4wn011244120463.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,] 1.00 1.000 1.000 1.030 1.010 1.030 1.01 0.97 0.390 0.16 0.150 0.220 [2,] 1.49 1.505 1.505 1.485 1.495 1.585 1.68 1.38 1.170 1.11 1.120 1.135 [3,] 2.61 2.280 1.980 2.000 2.010 2.000 1.81 1.76 1.930 2.16 2.280 2.500 [4,] 3.61 3.790 3.970 4.015 4.250 4.260 4.28 4.27 4.245 4.20 4.115 3.735 [5,] 5.26 5.250 5.250 5.250 5.260 5.250 5.25 5.25 5.250 5.24 5.250 5.260 $n [1] 7 7 7 7 7 7 7 7 7 7 7 7 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] 1.343970 0.9154349 0.5079418 0.4891248 0.3647584 0.4025332 0.2573219 [2,] 3.876030 3.6445651 3.4520582 3.5108752 3.6552416 3.5974668 3.3626781 [,8] [,9] [,10] [,11] [,12] [1,] 0.03413862 0.0936596 0.3147018 0.4914343 0.947322 [2,] 3.48586138 3.7663404 4.0052982 4.0685657 4.052678 $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(1, 1.49, 2.61, 3.61, 5.26, 1, 1.505, 2.28, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/512b71244120463.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.010 0.000 -0.040 -0.210 -0.010 -0.190 -0.180 -0.580 -0.250 -0.010 0.010 [2,] -0.005 0.000 0.000 -0.005 0.000 -0.050 -0.090 -0.340 -0.165 -0.005 0.010 [3,] 0.010 0.000 0.020 0.010 0.010 0.000 0.000 -0.010 -0.020 0.010 0.020 [4,] 0.090 0.075 0.035 0.225 0.095 0.065 0.075 0.085 0.075 0.070 0.135 [5,] 0.200 0.150 0.050 0.250 0.170 0.180 0.160 0.220 0.230 0.130 0.220 [,12] [1,] -0.010 [2,] -0.010 [3,] -0.005 [4,] 0.100 [5,] 0.130 $n [1] 7 7 7 7 7 7 7 7 7 7 7 6 $conf [,1] [,2] [,3] [,4] [,5] [,6] [1,] -0.04673247 -0.04478879 -0.0009014354 -0.1273523 -0.04673247 -0.06867614 [2,] 0.06673247 0.04478879 0.0409014354 0.1473523 0.06673247 0.06867614 [,7] [,8] [,9] [,10] [,11] [,12] [1,] -0.09853534 -0.2638031 -0.1633241 -0.03478879 -0.05464798 -0.07595355 [2,] 0.09853534 0.2438031 0.1233241 0.05478879 0.09464798 0.06595355 $out [1] -0.33 0.21 -0.30 0.24 -0.24 -0.84 -0.30 -0.96 -0.37 $group [1] 1 2 2 5 5 7 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.00999999999999979, -0.00499999999999989, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/6bdbn1244120463.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,] 1.240 0.980 1.000 2.63 4.590 3.940 0.150 NA [2,] 1.300 1.005 1.015 3.02 4.965 4.365 0.305 NA [3,] 1.735 1.010 1.520 3.56 5.245 4.980 1.895 NA [4,] 1.750 1.235 2.045 4.08 5.250 5.250 2.005 NA [5,] 1.750 1.260 2.500 4.49 5.260 5.260 2.610 NA $n [1] 12 12 12 12 12 12 12 0 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 1.529752 0.9050955 1.05021 3.076527 5.11501 4.576346 1.119619 NA [2,] 1.940248 1.1149045 1.98979 4.043473 5.37499 5.383654 2.670381 NA $out [1] 2.98 $group [1] 6 $names [1] "1" "2" "3" "4" "5" "6" "7" NA Warning message: In bxp(list(stats = c(1.24, 1.3, 1.735, 1.75, 1.75, 0.98, 1.005, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/7o11h1244120463.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,] 2.531429 1.760 2.43500 [2,] 2.612857 1.955 2.63250 [3,] 2.735714 2.005 2.72250 [4,] 2.789286 2.280 2.84875 [5,] 2.855714 2.610 2.98000 $n [1] 12 12 12 $conf [,1] [,2] [,3] [1,] 2.655244 1.856765 2.623867 [2,] 2.816185 2.153235 2.821133 $out numeric(0) $group numeric(0) $names [1] "mean" "median" "midrange" Warning message: In bxp(list(stats = c(2.53142857142857, 2.61285714285714, 2.73571428571429, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > > system("convert tmp/1fjod1244120463.ps tmp/1fjod1244120463.png") > system("convert tmp/2nsm31244120463.ps tmp/2nsm31244120463.png") > system("convert tmp/3fo951244120463.ps tmp/3fo951244120463.png") > system("convert tmp/4wn011244120463.ps tmp/4wn011244120463.png") > system("convert tmp/512b71244120463.ps tmp/512b71244120463.png") > system("convert tmp/6bdbn1244120463.ps tmp/6bdbn1244120463.png") > system("convert tmp/7o11h1244120463.ps tmp/7o11h1244120463.png") > > > proc.time() user system elapsed 1.213 0.944 2.018