R version 2.8.0 (2008-10-20) 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(1.82,1.76,1.79,1.74,1.78,1.80,1.80,1.80,1.79,1.82,1.82,1.83,1.77,1.77,1.77,1.77,1.74,1.78,1.78,1.78,1.78,1.81,1.84,1.80,1.78,1.76,1.74,1.72,1.73,1.77,1.81,1.83,1.87,1.89,1.82,1.79,1.79,1.82,1.82,1.81,1.81,1.78,1.80,1.79,1.83,1.82,1.80,1.82,1.84,1.82,1.81,1.79,1.87,1.89,1.92,1.9,1.91,1.95,2.04,1.99,1.94,1.93,1.89,1.87,1.89,1.9,1.93,1.94,1.88,1.89,1.92,1.91,1.89,1.89,1.98,2.02,2.02,1.99,1.97,1.96,1.95,1.98,2.00,2.00) > 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.82 1.77 1.78 1.79 1.84 1.94 1.89 NA [2,] 1.76 1.77 1.76 1.82 1.82 1.93 1.89 NA [3,] 1.79 1.77 1.74 1.82 1.81 1.89 1.98 NA [4,] 1.74 1.77 1.72 1.81 1.79 1.87 2.02 NA [5,] 1.78 1.74 1.73 1.81 1.87 1.89 2.02 NA [6,] 1.80 1.78 1.77 1.78 1.89 1.90 1.99 NA [7,] 1.80 1.78 1.81 1.80 1.92 1.93 1.97 NA [8,] 1.80 1.78 1.83 1.79 1.90 1.94 1.96 NA [9,] 1.79 1.78 1.87 1.83 1.91 1.88 1.95 NA [10,] 1.82 1.81 1.89 1.82 1.95 1.89 1.98 NA [11,] 1.82 1.84 1.82 1.80 2.04 1.92 2.00 NA [12,] 1.83 1.80 1.79 1.82 1.99 1.91 2.00 NA > darr [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] -0.06 0.00 -0.02 0.03 -0.02 -0.01 0.00 NA [2,] 0.03 0.00 -0.02 0.00 -0.01 -0.04 0.09 NA [3,] -0.05 0.00 -0.02 -0.01 -0.02 -0.02 0.04 NA [4,] 0.04 -0.03 0.01 0.00 0.08 0.02 0.00 NA [5,] 0.02 0.04 0.04 -0.03 0.02 0.01 -0.03 NA [6,] 0.00 0.00 0.04 0.02 0.03 0.03 -0.02 NA [7,] 0.00 0.00 0.02 -0.01 -0.02 0.01 -0.01 NA [8,] -0.01 0.00 0.04 0.04 0.01 -0.06 -0.01 NA [9,] 0.03 0.03 0.02 -0.01 0.04 0.01 0.03 NA [10,] 0.00 0.03 -0.07 -0.02 0.09 0.03 0.02 NA [11,] 0.01 -0.04 -0.03 0.02 -0.05 -0.01 0.00 NA [12,] -0.06 -0.02 0.00 0.02 -0.05 -0.02 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/freestat/rcomp/tmp/1h9hr1227891116.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/freestat/rcomp/tmp/2hq801227891116.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/freestat/rcomp/tmp/3b83b1227891116.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/freestat/rcomp/tmp/482vw1227891116.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.770 1.760 1.740 1.720 1.73 1.770 1.780 1.780 1.780 1.81 1.80 1.79 [2,] 1.785 1.765 1.780 1.755 1.76 1.780 1.800 1.795 1.810 1.82 1.82 1.81 [3,] 1.820 1.820 1.810 1.790 1.81 1.800 1.810 1.830 1.870 1.89 1.84 1.83 [4,] 1.865 1.855 1.855 1.840 1.88 1.895 1.925 1.920 1.895 1.92 1.96 1.95 [5,] 1.940 1.930 1.890 1.870 2.02 1.990 1.970 1.960 1.950 1.98 2.04 2.00 $n [1] 7 7 7 7 7 7 7 7 7 7 7 7 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 1.772225 1.766253 1.765211 1.739239 1.738338 1.731324 1.735352 1.755352 [2,] 1.867775 1.873747 1.854789 1.840761 1.881662 1.868676 1.884648 1.904648 [,9] [,10] [,11] [,12] [1,] 1.819239 1.830282 1.756394 1.746394 [2,] 1.920761 1.949718 1.923606 1.913606 $out [1] 1.98 2.02 $group [1] 3 4 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" "11" "12" Warning message: In bxp(list(stats = c(1.77, 1.785, 1.82, 1.865, 1.94, 1.76, 1.765, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/freestat/rcomp/tmp/5m4bm1227891116.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.02 -0.040 -0.020 -0.03 -0.03 -0.02 -0.020 -0.060 0.010 -0.07 -0.050 [2,] -0.02 -0.015 -0.020 0.00 -0.01 0.00 -0.010 -0.010 0.015 -0.01 -0.035 [3,] -0.01 0.000 -0.020 0.01 0.02 0.02 0.000 0.000 0.030 0.02 -0.010 [4,] 0.00 0.015 -0.005 0.03 0.03 0.03 0.005 0.025 0.030 0.03 0.005 [5,] 0.03 0.030 0.000 0.04 0.04 0.04 0.020 0.040 0.040 0.09 0.020 [,12] [1,] -0.06 [2,] -0.05 [3,] -0.02 [4,] 0.00 [5,] 0.02 $n [1] 7 7 7 7 7 7 7 7 7 7 7 6 $conf [,1] [,2] [,3] [,4] [,5] [,6] [1,] -0.021943677 -0.01791552 -0.02895776 -0.007915516 -0.003887355 0.002084484 [2,] 0.001943677 0.01791552 -0.01104224 0.027915516 0.043887355 0.037915516 [,7] [,8] [,9] [,10] [,11] [,12] [1,] -0.008957758 -0.02090144 0.02104224 -0.003887355 -0.03388735 -0.05225161 [2,] 0.008957758 0.02090144 0.03895776 0.043887355 0.01388735 0.01225161 $out [1] -0.06 0.09 -0.05 0.04 0.08 -0.01 $group [1] 1 2 3 3 4 9 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" "11" "12" Warning message: In bxp(list(stats = c(-0.02, -0.02, -0.01, 0, 0.03, -0.04, -0.015, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/freestat/rcomp/tmp/6tpit1227891116.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.740 1.74 1.720 1.780 1.790 1.870 1.890 NA [2,] 1.785 1.77 1.750 1.795 1.830 1.890 1.955 NA [3,] 1.800 1.78 1.785 1.810 1.895 1.905 1.980 NA [4,] 1.820 1.79 1.825 1.820 1.935 1.930 2.000 NA [5,] 1.830 1.81 1.890 1.830 2.040 1.940 2.020 NA $n [1] 12 12 12 12 12 12 12 0 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 1.784036 1.770878 1.750792 1.798597 1.847109 1.886756 1.959475 NA [2,] 1.815964 1.789122 1.819208 1.821403 1.942891 1.923244 2.000525 NA $out [1] 1.84 $group [1] 2 $names [1] "1" "2" "3" "4" "5" "6" "7" NA Warning message: In bxp(list(stats = c(1.74, 1.785, 1.8, 1.82, 1.83, 1.74, 1.77, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/freestat/rcomp/tmp/7tgf71227891116.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,] 1.817143 1.790 1.79750 [2,] 1.830714 1.810 1.81875 [3,] 1.850714 1.820 1.84500 [4,] 1.867857 1.835 1.86625 [5,] 1.891429 1.870 1.89000 $n [1] 12 12 12 $conf [,1] [,2] [,3] [1,] 1.833773 1.808597 1.823335 [2,] 1.867655 1.831403 1.866665 $out [1] 1.89 $group [1] 2 $names [1] "mean" "median" "midrange" Warning message: In bxp(list(stats = c(1.81714285714286, 1.83071428571429, 1.85071428571429, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > > system("convert tmp/1h9hr1227891116.ps tmp/1h9hr1227891116.png") > system("convert tmp/2hq801227891116.ps tmp/2hq801227891116.png") > system("convert tmp/3b83b1227891116.ps tmp/3b83b1227891116.png") > system("convert tmp/482vw1227891116.ps tmp/482vw1227891116.png") > system("convert tmp/5m4bm1227891116.ps tmp/5m4bm1227891116.png") > system("convert tmp/6tpit1227891116.ps tmp/6tpit1227891116.png") > system("convert tmp/7tgf71227891116.ps tmp/7tgf71227891116.png") > > > proc.time() user system elapsed 1.895 1.496 2.145