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(2.6900,2.7200,2.6800,2.7200,2.7000,2.7200,2.7200,2.7100,2.6800,2.6500,2.6600,2.6900,2.6700,2.6700,2.6500,2.6600,2.7600,2.7900,2.7900,2.7800,2.8100,2.8100,2.7900,2.7900,2.7900,2.8000,2.8000,2.8000,2.7700,2.7800,2.7500,2.7400,2.7400,2.7200,2.7100,2.7100,2.7000,2.6900,2.7000,2.7100,2.7600,2.7600,2.7500,2.7400,2.7100,2.7300,2.7300,2.7300,2.7200,2.7200,2.7500,2.8200,2.8500,2.8300,2.8500,2.8500,2.7900,2.8100,2.8000,2.7900,2.7900,2.8000,2.8000,2.8600,2.8600,2.8500,2.8100,2.7900,2.7800,2.7700,2.7800,2.8500,2.8200) > 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,] 2.69 2.67 2.79 2.70 2.72 2.79 2.82 [2,] 2.72 2.67 2.80 2.69 2.72 2.80 NA [3,] 2.68 2.65 2.80 2.70 2.75 2.80 NA [4,] 2.72 2.66 2.80 2.71 2.82 2.86 NA [5,] 2.70 2.76 2.77 2.76 2.85 2.86 NA [6,] 2.72 2.79 2.78 2.76 2.83 2.85 NA [7,] 2.72 2.79 2.75 2.75 2.85 2.81 NA [8,] 2.71 2.78 2.74 2.74 2.85 2.79 NA [9,] 2.68 2.81 2.74 2.71 2.79 2.78 NA [10,] 2.65 2.81 2.72 2.73 2.81 2.77 NA [11,] 2.66 2.79 2.71 2.73 2.80 2.78 NA [12,] 2.69 2.79 2.71 2.73 2.79 2.85 NA > darr [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] 0.03 0.00 0.01 -0.01 0.00 0.01 NA [2,] -0.04 -0.02 0.00 0.01 0.03 0.00 NA [3,] 0.04 0.01 0.00 0.01 0.07 0.06 NA [4,] -0.02 0.10 -0.03 0.05 0.03 0.00 NA [5,] 0.02 0.03 0.01 0.00 -0.02 -0.01 NA [6,] 0.00 0.00 -0.03 -0.01 0.02 -0.04 NA [7,] -0.01 -0.01 -0.01 -0.01 0.00 -0.02 NA [8,] -0.03 0.03 0.00 -0.03 -0.06 -0.01 NA [9,] -0.03 0.00 -0.02 0.02 0.02 -0.01 NA [10,] 0.01 -0.02 -0.01 0.00 -0.01 0.01 NA [11,] 0.03 0.00 0.00 0.00 -0.01 0.07 NA [12,] -0.02 0.00 -0.01 -0.01 0.00 -0.03 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/1fiws1209482953.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/22h1d1209482953.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/3v8ry1209482953.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/450kd1209482953.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,] 2.670 2.67 2.650 2.66 2.700 2.720 2.72 2.71 2.68 2.65 2.660 2.69 [2,] 2.695 2.69 2.680 2.71 2.760 2.760 2.75 2.74 2.71 2.72 2.710 2.71 [3,] 2.720 2.72 2.725 2.76 2.765 2.785 2.77 2.76 2.76 2.75 2.755 2.76 [4,] 2.790 2.80 2.800 2.82 2.850 2.830 2.81 2.79 2.79 2.81 2.790 2.79 [5,] 2.820 2.80 2.800 2.86 2.860 2.850 2.85 2.85 2.81 2.81 2.800 2.85 $n [1] 7 6 6 6 6 6 6 6 6 6 6 6 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 2.663268 2.649046 2.647596 2.689046 2.706947 2.739848 2.731298 2.727748 [2,] 2.776732 2.790954 2.802404 2.830954 2.823053 2.830152 2.808702 2.792252 [,9] [,10] [,11] [,12] [1,] 2.708397 2.691947 2.703397 2.708397 [2,] 2.811603 2.808053 2.806603 2.811603 $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(2.67, 2.695, 2.72, 2.79, 2.82, 2.67, 2.69, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/53sv41209482953.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.04 0.000 -0.030 -0.020 -0.040 -0.01 -0.06 -0.030 -0.020 -0.01 [2,] 0.000 -0.02 0.010 -0.020 -0.010 -0.030 -0.01 -0.03 -0.020 -0.010 0.00 [3,] 0.005 0.00 0.025 0.015 0.005 -0.005 -0.01 -0.02 -0.005 -0.005 0.00 [4,] 0.010 0.01 0.060 0.050 0.020 0.000 -0.01 0.00 0.020 0.010 0.03 [5,] 0.010 0.03 0.070 0.100 0.030 0.020 -0.01 0.03 0.020 0.010 0.07 [,12] [1,] -0.03 [2,] -0.02 [3,] -0.01 [4,] 0.00 [5,] 0.00 $n [1] 6 6 6 6 6 6 6 6 6 6 6 6 $conf [,1] [,2] [,3] [,4] [,5] [,6] [1,] -0.001450323 -0.01935097 -0.007251615 -0.03015226 -0.01435097 -0.02435097 [2,] 0.011450323 0.01935097 0.057251615 0.06015226 0.02435097 0.01435097 [,7] [,8] [,9] [,10] [,11] [,12] [1,] -0.01 -0.039350969 -0.03080129 -0.017900646 -0.01935097 -0.022900646 [2,] -0.01 -0.000649031 0.02080129 0.007900646 0.01935097 0.002900646 $out [1] 0.03 0.00 -0.02 $group [1] 1 7 7 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" "11" "12" Warning message: In bxp(list(stats = c(-0.0100000000000002, 0, 0.00499999999999989, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/6u6tf1209482953.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,] 2.650 2.650 2.710 2.690 2.720 2.770 2.82 [2,] 2.680 2.670 2.730 2.705 2.770 2.785 2.82 [3,] 2.695 2.785 2.760 2.730 2.805 2.800 2.82 [4,] 2.720 2.790 2.795 2.745 2.840 2.850 2.82 [5,] 2.720 2.810 2.800 2.760 2.850 2.860 2.82 $n [1] 12 12 12 12 12 12 1 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] 2.676756 2.730267 2.730353 2.711756 2.773073 2.770353 2.82 [2,] 2.713244 2.839733 2.789647 2.748244 2.836927 2.829647 2.82 $out numeric(0) $group numeric(0) $names [1] "1" "2" "3" "4" "5" "6" NA Warning message: In bxp(list(stats = c(2.65, 2.68, 2.695, 2.72, 2.72, 2.65, 2.67, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/7pxje1209482953.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.730000 2.7200 2.736250 [2,] 2.742500 2.7375 2.746875 [3,] 2.755833 2.7600 2.756875 [4,] 2.773333 2.7625 2.770625 [5,] 2.788333 2.7850 2.795000 $n [1] 12 12 12 $conf [,1] [,2] [,3] [1,] 2.741770 2.748597 2.746042 [2,] 2.769897 2.771403 2.767708 $out numeric(0) $group numeric(0) $names [1] "mean" "median" "midrange" Warning message: In bxp(list(stats = c(2.73, 2.7425, 2.75583333333333, 2.77333333333333, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > > system("convert tmp/1fiws1209482953.ps tmp/1fiws1209482953.png") > system("convert tmp/22h1d1209482953.ps tmp/22h1d1209482953.png") > system("convert tmp/3v8ry1209482953.ps tmp/3v8ry1209482953.png") > system("convert tmp/450kd1209482953.ps tmp/450kd1209482953.png") > system("convert tmp/53sv41209482953.ps tmp/53sv41209482953.png") > system("convert tmp/6u6tf1209482953.ps tmp/6u6tf1209482953.png") > system("convert tmp/7pxje1209482953.ps tmp/7pxje1209482953.png") > > > proc.time() user system elapsed 1.430 0.949 1.739