R version 2.6.2 (2008-02-08) Copyright (C) 2008 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.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,11.87,11.86,12.11,11.92,12.61,13.34,13.31,13.47,13.24,13.18,13.3) > 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] 72 > (np <- floor(n / par1)) [1] 6 > 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] 6 6 6 6 6 6 6 6 6 6 6 6 > arr [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] 11.98 12.22 11.93 11.91 11.64 11.80 NA [2,] 11.79 12.23 11.79 11.94 11.39 11.87 NA [3,] 11.66 11.92 11.43 11.91 11.54 11.86 NA [4,] 11.96 12.13 11.63 11.84 11.62 12.11 NA [5,] 11.83 12.10 11.93 12.01 11.59 11.92 NA [6,] 12.36 12.15 11.89 11.89 11.44 12.61 NA [7,] 12.53 12.23 11.83 11.80 11.31 13.34 NA [8,] 12.55 12.08 11.59 11.70 11.56 13.31 NA [9,] 12.53 12.02 12.04 11.50 11.40 13.47 NA [10,] 12.24 11.93 11.81 11.76 11.51 13.24 NA [11,] 12.34 12.16 11.90 11.61 11.50 13.18 NA [12,] 12.05 11.87 11.72 11.27 11.24 13.30 NA > darr [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] -0.19 0.01 -0.14 0.03 -0.25 0.07 NA [2,] -0.13 -0.31 -0.36 -0.03 0.15 -0.01 NA [3,] 0.30 0.21 0.20 -0.07 0.08 0.25 NA [4,] -0.13 -0.03 0.30 0.17 -0.03 -0.19 NA [5,] 0.53 0.05 -0.04 -0.12 -0.15 0.69 NA [6,] 0.17 0.08 -0.06 -0.09 -0.13 0.73 NA [7,] 0.02 -0.15 -0.24 -0.10 0.25 -0.03 NA [8,] -0.02 -0.06 0.45 -0.20 -0.16 0.16 NA [9,] -0.29 -0.09 -0.23 0.26 0.11 -0.23 NA [10,] 0.10 0.23 0.09 -0.15 -0.01 -0.06 NA [11,] -0.29 -0.29 -0.18 -0.34 -0.26 0.12 NA [12,] 0.17 0.06 0.19 0.37 0.56 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/1blhe1209331902.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/2gvs11209331902.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/3aj9r1209331902.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/4wdkh1209331902.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,] 11.64 11.79 11.43 11.62 11.590 11.44 11.31 11.56 11.40 11.51 11.50 11.240 [2,] 11.80 11.79 11.54 11.63 11.830 11.89 11.80 11.59 11.50 11.76 11.61 11.270 [3,] 11.92 11.83 11.76 11.90 11.925 12.02 12.03 11.89 12.03 11.87 12.03 11.795 [4,] 11.98 11.94 11.91 12.11 12.010 12.36 12.53 12.55 12.53 12.24 12.34 12.050 [5,] 12.22 11.94 11.92 12.13 12.100 12.61 13.34 13.31 13.47 12.24 13.18 12.050 $n [1] 6 6 6 6 6 6 6 6 6 6 6 6 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 11.80389 11.73325 11.52134 11.59038 11.80889 11.71683 11.55913 11.27077 [2,] 12.03611 11.92675 11.99866 12.20962 12.04111 12.32317 12.50087 12.50923 [,9] [,10] [,11] [,12] [1,] 11.36562 11.56038 11.55913 11.29187 [2,] 12.69438 12.17962 12.50087 12.29813 $out [1] 12.23 11.39 13.24 13.30 $group [1] 2 2 10 12 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" "11" "12" Warning message: In bxp(list(stats = c(11.64, 11.8, 11.92, 11.98, 12.22, 11.79, 11.79, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/51rjm1209331902.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.250 -0.36 -0.070 -0.19 -0.150 -0.13 -0.240 -0.20 -0.29 -0.15 -0.340 [2,] -0.190 -0.31 0.080 -0.13 -0.120 -0.09 -0.150 -0.16 -0.23 -0.06 -0.290 [3,] -0.065 -0.08 0.205 -0.03 0.005 0.01 -0.065 -0.04 -0.16 0.04 -0.275 [4,] 0.030 -0.01 0.250 0.17 0.530 0.17 0.020 0.16 0.11 0.10 -0.180 [5,] 0.070 0.15 0.300 0.30 0.690 0.17 0.250 0.45 0.26 0.23 -0.180 [,12] [1,] 0.06 [2,] 0.17 [3,] 0.19 [4,] 0.37 [5,] 0.56 $n [1] 6 6 6 6 6 6 6 6 6 6 6 5 $conf [,1] [,2] [,3] [,4] [,5] [,6] [1,] -0.2069071 -0.2735097 0.0953445 -0.2235097 -0.414271 -0.1577084 [2,] 0.0769071 0.1135097 0.3146555 0.1635097 0.424271 0.1777084 [,7] [,8] [,9] [,10] [,11] [,12] [1,] -0.17465549 -0.2464103 -0.37931098 -0.06320517 -0.3459536 0.0486805 [2,] 0.04465549 0.1664103 0.05931098 0.14320517 -0.2040464 0.3313195 $out [1] 0.73 0.12 $group [1] 6 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.190000000000001, -0.0650000000000004, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/677sh1209331902.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] [1,] 11.660 11.870 11.430 11.500 11.240 11.800 NA [2,] 11.895 11.975 11.675 11.655 11.395 11.895 NA [3,] 12.145 12.115 11.820 11.820 11.505 12.895 NA [4,] 12.445 12.190 11.915 11.910 11.575 13.305 NA [5,] 12.550 12.230 12.040 12.010 11.640 13.470 NA $n [1] 12 12 12 12 12 12 0 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] 11.89414 12.01694 11.71053 11.70369 11.4229 12.25189 NA [2,] 12.39586 12.21306 11.92947 11.93631 11.5871 13.53811 NA $out [1] 11.27 $group [1] 4 $names [1] "1" "2" "3" "4" "5" "6" NA Warning message: In bxp(list(stats = c(11.66, 11.895, 12.145, 12.445, 12.55, 11.87, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/7ibbx1209331902.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.72000 11.760 11.69375 [2,] 11.88917 11.850 11.86688 [3,] 11.98500 11.910 11.94438 [4,] 12.12333 12.025 12.02187 [5,] 12.17333 12.030 12.13125 $n [1] 12 12 12 $conf [,1] [,2] [,3] [1,] 11.87820 11.83018 11.87368 [2,] 12.09180 11.98982 12.01507 $out numeric(0) $group numeric(0) $names [1] "mean" "median" "midrange" Warning message: In bxp(list(stats = c(11.72, 11.8891666666667, 11.985, 12.1233333333333, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > > system("convert tmp/1blhe1209331902.ps tmp/1blhe1209331902.png") > system("convert tmp/2gvs11209331902.ps tmp/2gvs11209331902.png") > system("convert tmp/3aj9r1209331902.ps tmp/3aj9r1209331902.png") > system("convert tmp/4wdkh1209331902.ps tmp/4wdkh1209331902.png") > system("convert tmp/51rjm1209331902.ps tmp/51rjm1209331902.png") > system("convert tmp/677sh1209331902.ps tmp/677sh1209331902.png") > system("convert tmp/7ibbx1209331902.ps tmp/7ibbx1209331902.png") > > > proc.time() user system elapsed 1.463 0.979 3.611