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(20.66,20.66,20.67,20.71,20.73,20.73,20.74,20.74,20.75,20.75,20.77,20.78,20.78,20.8,20.84,20.85,20.86,20.86,20.86,20.86,20.9,20.92,20.95,20.95,20.95,20.96,21.1,21.18,21.19,21.19,21.19,21.19,21.19,21.21,21.22,21.22,21.22,21.23,21.41,21.42,21.43,21.44,21.44,21.44,21.48,21.53,21.54,21.54,21.54,21.54,21.54,21.54,21.54,21.54,21.54,21.54,21.57,21.6,21.61,21.6,21.6,21.71,21.75,21.84,21.85,21.92,21.92,21.93,22,22,21.99,22.01,22.01) > 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] 73 > (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] 7 6 6 6 6 6 6 6 6 6 6 6 > arr [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] 20.66 20.78 20.95 21.22 21.54 21.60 22.01 [2,] 20.66 20.80 20.96 21.23 21.54 21.71 NA [3,] 20.67 20.84 21.10 21.41 21.54 21.75 NA [4,] 20.71 20.85 21.18 21.42 21.54 21.84 NA [5,] 20.73 20.86 21.19 21.43 21.54 21.85 NA [6,] 20.73 20.86 21.19 21.44 21.54 21.92 NA [7,] 20.74 20.86 21.19 21.44 21.54 21.92 NA [8,] 20.74 20.86 21.19 21.44 21.54 21.93 NA [9,] 20.75 20.90 21.19 21.48 21.57 22.00 NA [10,] 20.75 20.92 21.21 21.53 21.60 22.00 NA [11,] 20.77 20.95 21.22 21.54 21.61 21.99 NA [12,] 20.78 20.95 21.22 21.54 21.60 22.01 NA > darr [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] 0.00 0.02 0.01 0.01 0.00 0.11 NA [2,] 0.01 0.04 0.14 0.18 0.00 0.04 NA [3,] 0.04 0.01 0.08 0.01 0.00 0.09 NA [4,] 0.02 0.01 0.01 0.01 0.00 0.01 NA [5,] 0.00 0.00 0.00 0.01 0.00 0.07 NA [6,] 0.01 0.00 0.00 0.00 0.00 0.00 NA [7,] 0.00 0.00 0.00 0.00 0.00 0.01 NA [8,] 0.01 0.04 0.00 0.04 0.03 0.07 NA [9,] 0.00 0.02 0.02 0.05 0.03 0.00 NA [10,] 0.02 0.03 0.01 0.01 0.01 -0.01 NA [11,] 0.01 0.00 0.00 0.00 -0.01 0.02 NA [12,] 0.00 0.00 0.00 0.00 0.00 0.00 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/1ss4b1209234851.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/2lpz51209234851.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/3oj7l1209234851.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/45rpv1209234851.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,] 20.660 20.660 20.670 20.71 20.73 20.730 20.740 20.740 20.750 20.75 20.77 [2,] 20.865 20.800 20.840 20.85 20.86 20.860 20.860 20.860 20.900 20.92 20.95 [3,] 21.220 21.095 21.255 21.30 21.31 21.315 21.315 21.315 21.335 21.37 21.38 [4,] 21.570 21.540 21.540 21.54 21.54 21.540 21.540 21.540 21.570 21.60 21.61 [5,] 22.010 21.710 21.750 21.84 21.85 21.920 21.920 21.930 22.000 22.00 21.99 [,12] [1,] 20.78 [2,] 20.95 [3,] 21.38 [4,] 21.60 [5,] 22.01 $n [1] 7 6 6 6 6 6 6 6 6 6 6 6 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 20.79899 20.61768 20.80348 20.85493 20.87138 20.87638 20.87638 20.87638 [2,] 21.64101 21.57232 21.70652 21.74507 21.74862 21.75362 21.75362 21.75362 [,9] [,10] [,11] [,12] [1,] 20.90283 20.93138 20.95428 20.96073 [2,] 21.76717 21.80862 21.80572 21.79927 $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(20.66, 20.865, 21.22, 21.57, 22.01, 20.66, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/55o8e1209234851.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,] 0.00 0.00 0.000 0.01 0.00 0 0 0.000 0.00 0.01 -0.01 0 [2,] 0.00 0.01 0.010 0.01 0.00 0 0 0.010 0.00 0.01 0.00 0 [3,] 0.01 0.04 0.025 0.01 0.00 0 0 0.035 0.02 0.01 0.00 0 [4,] 0.02 0.14 0.080 0.01 0.01 0 0 0.040 0.03 0.02 0.01 0 [5,] 0.02 0.18 0.090 0.01 0.01 0 0 0.070 0.05 0.03 0.02 0 $n [1] 6 6 6 6 6 6 6 6 6 6 6 6 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] -0.002900646 -0.0438542 -0.02015226 0.01 -0.006450323 0 0 0.01564903 [2,] 0.022900646 0.1238542 0.07015226 0.01 0.006450323 0 0 0.05435097 [,9] [,10] [,11] [,12] [1,] 0.000649031 0.003549677 -0.006450323 0 [2,] 0.039350969 0.016450323 0.006450323 0 $out [1] 0.11 0.02 0.00 0.07 0.01 0.01 -0.01 $group [1] 1 4 4 5 6 7 10 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" "11" "12" Warning message: In bxp(list(stats = c(0, 0, 0.0100000000000016, 0.0199999999999996, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/619v31209234851.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,] 20.660 20.780 21.10 21.410 21.540 21.600 22.01 [2,] 20.690 20.845 21.14 21.415 21.540 21.795 22.01 [3,] 20.735 20.860 21.19 21.440 21.540 21.920 22.01 [4,] 20.750 20.910 21.20 21.505 21.585 21.995 22.01 [5,] 20.780 20.950 21.22 21.540 21.610 22.010 22.01 $n [1] 12 12 12 12 12 12 1 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] 20.70763 20.83035 21.16263 21.39895 21.51948 21.82878 22.01 [2,] 20.76237 20.88965 21.21737 21.48105 21.56052 22.01122 22.01 $out [1] 20.95 20.96 21.22 21.23 $group [1] 3 3 4 4 $names [1] "1" "2" "3" "4" "5" "6" NA Warning message: In bxp(list(stats = c(20.66, 20.69, 20.735, 20.75, 20.78, 20.78, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/7ivzf1209234851.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,] 21.15000 21.2200 21.15125 [2,] 21.25405 21.2775 21.21937 [3,] 21.28083 21.3150 21.22875 [4,] 21.32500 21.3525 21.27375 [5,] 21.35000 21.3800 21.30500 $n [1] 12 12 12 $conf [,1] [,2] [,3] [1,] 21.24847 21.28079 21.20395 [2,] 21.31320 21.34921 21.25355 $out [1] 21.095 $group [1] 2 $names [1] "mean" "median" "midrange" Warning message: In bxp(list(stats = c(21.15, 21.2540476190476, 21.2808333333333, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > > system("convert tmp/1ss4b1209234851.ps tmp/1ss4b1209234851.png") > system("convert tmp/2lpz51209234851.ps tmp/2lpz51209234851.png") > system("convert tmp/3oj7l1209234851.ps tmp/3oj7l1209234851.png") > system("convert tmp/45rpv1209234851.ps tmp/45rpv1209234851.png") > system("convert tmp/55o8e1209234851.ps tmp/55o8e1209234851.png") > system("convert tmp/619v31209234851.ps tmp/619v31209234851.png") > system("convert tmp/7ivzf1209234851.ps tmp/7ivzf1209234851.png") > > > proc.time() user system elapsed 1.464 0.974 3.514