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(4.68,4.68,4.67,4.58,4.48,4.46,4.46,4.46,4.45,4.45,4.45,4.45,4.45,4.45,4.45,4.45,4.44,4.44,4.44,4.44,4.44,4.43,4.38,4.23,4.2,4.2,4.2,4.2,4.2,4.19,4.16,4.06,4,3.99,3.95,3.81,3.8,3.8,3.8,3.8,3.79,3.79,3.78,3.69,3.69,3.69,3.69,3.69,3.69,3.69,3.69,3.68,3.63,3.61,3.61,3.61,3.6,3.58,3.52,3.52,3.52,3.52,3.52,3.52,3.52,3.52,3.52,3.51,3.47,3.43,3.42,3.42) > 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,] 4.68 4.45 4.20 3.80 3.69 3.52 NA [2,] 4.68 4.45 4.20 3.80 3.69 3.52 NA [3,] 4.67 4.45 4.20 3.80 3.69 3.52 NA [4,] 4.58 4.45 4.20 3.80 3.68 3.52 NA [5,] 4.48 4.44 4.20 3.79 3.63 3.52 NA [6,] 4.46 4.44 4.19 3.79 3.61 3.52 NA [7,] 4.46 4.44 4.16 3.78 3.61 3.52 NA [8,] 4.46 4.44 4.06 3.69 3.61 3.51 NA [9,] 4.45 4.44 4.00 3.69 3.60 3.47 NA [10,] 4.45 4.43 3.99 3.69 3.58 3.43 NA [11,] 4.45 4.38 3.95 3.69 3.52 3.42 NA [12,] 4.45 4.23 3.81 3.69 3.52 3.42 NA > darr [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] 0.00 0.00 0.00 0.00 0.00 0.00 NA [2,] -0.01 0.00 0.00 0.00 0.00 0.00 NA [3,] -0.09 0.00 0.00 0.00 -0.01 0.00 NA [4,] -0.10 -0.01 0.00 -0.01 -0.05 0.00 NA [5,] -0.02 0.00 -0.01 0.00 -0.02 0.00 NA [6,] 0.00 0.00 -0.03 -0.01 0.00 0.00 NA [7,] 0.00 0.00 -0.10 -0.09 0.00 -0.01 NA [8,] -0.01 0.00 -0.06 0.00 -0.01 -0.04 NA [9,] 0.00 -0.01 -0.01 0.00 -0.02 -0.04 NA [10,] 0.00 -0.05 -0.04 0.00 -0.06 -0.01 NA [11,] 0.00 -0.15 -0.14 0.00 0.00 0.00 NA [12,] 0.00 -0.03 -0.01 0.00 0.00 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/1xikj1209328603.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/2j6fn1209328603.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/382ju1209328603.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/4wohq1209328603.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,] 3.52 3.52 3.52 3.52 3.520 3.52 3.52 3.510 3.470 3.43 3.42 3.42 [2,] 3.69 3.69 3.69 3.68 3.630 3.61 3.61 3.610 3.600 3.58 3.52 3.52 [3,] 4.00 4.00 4.00 4.00 3.995 3.99 3.97 3.875 3.845 3.84 3.82 3.75 [4,] 4.45 4.45 4.45 4.45 4.440 4.44 4.44 4.440 4.440 4.43 4.38 4.23 [5,] 4.68 4.68 4.67 4.58 4.480 4.46 4.46 4.460 4.450 4.45 4.45 4.45 $n [1] 6 6 6 6 6 6 6 6 6 6 6 6 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 3.509775 3.509775 3.509775 3.503325 3.472524 3.454623 3.434623 3.339623 [2,] 4.490225 4.490225 4.490225 4.496675 4.517476 4.525377 4.505377 4.410377 [,9] [,10] [,11] [,12] [1,] 3.303173 3.291723 3.265272 3.292027 [2,] 4.386827 4.388277 4.374728 4.207973 $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(3.52, 3.69, 4, 4.45, 4.68, 3.52, 3.69, 4, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/5nc3j1209328603.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 0 -0.01 -0.10 -0.020 -0.01 -0.100 -0.06 -0.04 -0.060 -0.15 -0.01 [2,] 0 0 -0.01 -0.05 -0.020 -0.01 -0.090 -0.04 -0.02 -0.050 -0.14 -0.01 [3,] 0 0 0.00 -0.01 -0.005 0.00 -0.005 -0.01 -0.01 -0.025 0.00 0.00 [4,] 0 0 0.00 0.00 0.000 0.00 0.000 0.00 0.00 0.000 0.00 0.00 [5,] 0 0 0.00 0.00 0.000 0.00 0.000 0.00 0.00 0.000 0.00 0.00 $n [1] 6 6 6 6 6 6 6 6 6 6 6 5 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] 0 0 -0.006450323 -0.04225161 -0.017900646 -0.006450323 -0.06305291 [2,] 0 0 0.006450323 0.02225161 0.007900646 0.006450323 0.05305291 [,8] [,9] [,10] [,11] [,12] [1,] -0.03580129 -0.022900646 -0.057251615 -0.09030452 -0.007065975 [2,] 0.01580129 0.002900646 0.007251615 0.09030452 0.007065975 $out [1] -0.01 -0.09 -0.03 -0.03 $group [1] 2 3 6 12 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" "11" "12" Warning message: In bxp(list(stats = c(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, -0.00999999999999979, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/6jq111209328603.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,] 4.450 4.430 3.810 3.690 3.520 3.42 NA [2,] 4.450 4.435 3.995 3.690 3.590 3.45 NA [3,] 4.460 4.440 4.175 3.785 3.610 3.52 NA [4,] 4.625 4.450 4.200 3.800 3.685 3.52 NA [5,] 4.680 4.450 4.200 3.800 3.690 3.52 NA $n [1] 12 12 12 12 12 12 0 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] 4.380181 4.433158 4.081498 3.734828 3.56667 3.488073 NA [2,] 4.539819 4.446842 4.268502 3.835172 3.65333 3.551927 NA $out [1] 4.38 4.23 $group [1] 2 2 $names [1] "1" "2" "3" "4" "5" "6" NA Warning message: In bxp(list(stats = c(4.45, 4.45, 4.46, 4.625, 4.68, 4.43, 4.435, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/76kyq1209328603.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,] 3.853333 3.7500 3.917500 [2,] 3.935000 3.8425 3.970000 [3,] 3.998333 3.9800 4.013750 [4,] 4.046667 4.0000 4.050625 [5,] 4.056667 4.0000 4.052500 $n [1] 12 12 12 $conf [,1] [,2] [,3] [1,] 3.947401 3.908163 3.976976 [2,] 4.049265 4.051837 4.050524 $out [1] 3.84375 $group [1] 3 $names [1] "mean" "median" "midrange" Warning message: In bxp(list(stats = c(3.85333333333333, 3.935, 3.99833333333333, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > > system("convert tmp/1xikj1209328603.ps tmp/1xikj1209328603.png") > system("convert tmp/2j6fn1209328603.ps tmp/2j6fn1209328603.png") > system("convert tmp/382ju1209328603.ps tmp/382ju1209328603.png") > system("convert tmp/4wohq1209328603.ps tmp/4wohq1209328603.png") > system("convert tmp/5nc3j1209328603.ps tmp/5nc3j1209328603.png") > system("convert tmp/6jq111209328603.ps tmp/6jq111209328603.png") > system("convert tmp/76kyq1209328603.ps tmp/76kyq1209328603.png") > > > proc.time() user system elapsed 1.457 0.978 3.472