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(2.42,2.42,2.42,2.42,2.42,2.43,2.43,2.43,2.44,2.44,2.44,2.43,2.42,2.41,2.38,2.38,2.37,2.37,2.37,2.36,2.32,2.25,2.25,2.24,2.24,2.23,2.22,2.22,2.21,2.21,2.20,2.21,2.20,2.21,2.21,2.21,2.20,2.20,2.19,2.19,2.19,2.18,2.18,2.18,2.18,2.18,2.18,2.18,2.18,2.18,2.18,2.18,2.18,2.18,2.17,2.17,2.17,2.17,2.17,2.17,2.17,2.17,2.17,2.18,2.17,2.18,2.17,2.17,2.18,2.18,2.18,2.17) > 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,] 2.42 2.42 2.24 2.20 2.18 2.17 NA [2,] 2.42 2.41 2.23 2.20 2.18 2.17 NA [3,] 2.42 2.38 2.22 2.19 2.18 2.17 NA [4,] 2.42 2.38 2.22 2.19 2.18 2.18 NA [5,] 2.42 2.37 2.21 2.19 2.18 2.17 NA [6,] 2.43 2.37 2.21 2.18 2.18 2.18 NA [7,] 2.43 2.37 2.20 2.18 2.17 2.17 NA [8,] 2.43 2.36 2.21 2.18 2.17 2.17 NA [9,] 2.44 2.32 2.20 2.18 2.17 2.18 NA [10,] 2.44 2.25 2.21 2.18 2.17 2.18 NA [11,] 2.44 2.25 2.21 2.18 2.17 2.18 NA [12,] 2.43 2.24 2.21 2.18 2.17 2.17 NA > darr [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] 0.00 -0.01 -0.01 0.00 0.00 0.00 NA [2,] 0.00 -0.03 -0.01 -0.01 0.00 0.00 NA [3,] 0.00 0.00 0.00 0.00 0.00 0.01 NA [4,] 0.00 -0.01 -0.01 0.00 0.00 -0.01 NA [5,] 0.01 0.00 0.00 -0.01 0.00 0.01 NA [6,] 0.00 0.00 -0.01 0.00 -0.01 -0.01 NA [7,] 0.00 -0.01 0.01 0.00 0.00 0.00 NA [8,] 0.01 -0.04 -0.01 0.00 0.00 0.01 NA [9,] 0.00 -0.07 0.01 0.00 0.00 0.00 NA [10,] 0.00 0.00 0.00 0.00 0.00 0.00 NA [11,] -0.01 -0.01 0.00 0.00 0.00 -0.01 NA [12,] -0.01 0.00 -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/freestat/rcomp/tmp/1e3nc1272110012.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/26cmf1272110012.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/36cmf1272110012.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/4u0wc1272110012.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.17 2.170 2.170 2.180 2.17 2.180 2.17 2.170 2.17 2.170 2.170 2.170 [2,] 2.18 2.180 2.180 2.180 2.18 2.180 2.17 2.170 2.18 2.180 2.180 2.170 [3,] 2.22 2.215 2.205 2.205 2.20 2.195 2.19 2.195 2.19 2.195 2.195 2.195 [4,] 2.42 2.410 2.380 2.380 2.37 2.370 2.37 2.360 2.32 2.250 2.250 2.240 [5,] 2.42 2.420 2.420 2.420 2.42 2.430 2.43 2.430 2.44 2.250 2.250 2.240 $n [1] 6 6 6 6 6 6 6 6 6 6 6 6 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 2.065192 2.066643 2.075994 2.075994 2.077444 2.072444 2.060994 2.072444 [2,] 2.374808 2.363357 2.334006 2.334006 2.322556 2.317556 2.319006 2.317556 [,9] [,10] [,11] [,12] [1,] 2.099695 2.149848 2.149848 2.149848 [2,] 2.280305 2.240152 2.240152 2.240152 $out [1] 2.44 2.44 2.43 $group [1] 10 11 12 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" "11" "12" Warning message: In bxp(list(stats = c(2.17, 2.18, 2.22, 2.42, 2.42, 2.17, 2.18, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/freestat/rcomp/tmp/5u0wc1272110012.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.01 -0.010 0 -0.010 -0.01 -0.010 0 -0.01 0 0 -0.010 -0.01 [2,] -0.01 -0.010 0 -0.010 0.00 -0.010 0 -0.01 0 0 -0.010 -0.01 [3,] 0.00 -0.005 0 -0.005 0.00 -0.005 0 0.00 0 0 -0.005 0.00 [4,] 0.00 0.000 0 0.000 0.01 0.000 0 0.01 0 0 0.000 0.00 [5,] 0.00 0.000 0 0.000 0.01 0.000 0 0.01 0 0 0.000 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.006450323 -0.011450323 0 -0.011450323 -0.006450323 -0.011450323 0 [2,] 0.006450323 0.001450323 0 0.001450323 0.006450323 0.001450323 0 [,8] [,9] [,10] [,11] [,12] [1,] -0.01290065 0 0 -0.011450323 -0.007065975 [2,] 0.01290065 0 0 0.001450323 0.007065975 $out [1] -0.03 0.01 -0.01 0.01 -0.04 -0.07 0.01 $group [1] 2 3 7 7 8 9 9 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" "11" "12" Warning message: In bxp(list(stats = c(-0.0100000000000002, -0.00999999999999979, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/freestat/rcomp/tmp/6u0wc1272110012.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.420 2.240 2.20 2.18 2.170 2.17 NA [2,] 2.420 2.285 2.21 2.18 2.170 2.17 NA [3,] 2.430 2.370 2.21 2.18 2.175 2.17 NA [4,] 2.435 2.380 2.22 2.19 2.180 2.18 NA [5,] 2.440 2.420 2.23 2.20 2.180 2.18 NA $n [1] 12 12 12 12 12 12 0 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] 2.423158 2.32667 2.205439 2.175439 2.170439 2.165439 NA [2,] 2.436842 2.41333 2.214561 2.184561 2.179561 2.174561 NA $out [1] 2.24 $group [1] 3 $names [1] "1" "2" "3" "4" "5" "6" NA Warning message: In bxp(list(stats = c(2.42, 2.42, 2.43, 2.435, 2.44, 2.24, 2.285, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/freestat/rcomp/tmp/75swf1272110012.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.233333 2.190 2.20250 [2,] 2.243333 2.195 2.22250 [3,] 2.255000 2.195 2.25250 [4,] 2.260833 2.205 2.26125 [5,] 2.271667 2.215 2.28000 $n [1] 12 12 12 $conf [,1] [,2] [,3] [1,] 2.247018 2.190439 2.234826 [2,] 2.262982 2.199561 2.270174 $out [1] 2.22 $group [1] 2 $names [1] "mean" "median" "midrange" Warning message: In bxp(list(stats = c(2.23333333333333, 2.24333333333333, 2.255, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > > try(system("convert tmp/1e3nc1272110012.ps tmp/1e3nc1272110012.png",intern=TRUE)) character(0) > try(system("convert tmp/26cmf1272110012.ps tmp/26cmf1272110012.png",intern=TRUE)) character(0) > try(system("convert tmp/36cmf1272110012.ps tmp/36cmf1272110012.png",intern=TRUE)) character(0) > try(system("convert tmp/4u0wc1272110012.ps tmp/4u0wc1272110012.png",intern=TRUE)) character(0) > try(system("convert tmp/5u0wc1272110012.ps tmp/5u0wc1272110012.png",intern=TRUE)) character(0) > try(system("convert tmp/6u0wc1272110012.ps tmp/6u0wc1272110012.png",intern=TRUE)) character(0) > try(system("convert tmp/75swf1272110012.ps tmp/75swf1272110012.png",intern=TRUE)) character(0) > > > proc.time() user system elapsed 1.881 1.491 2.239