R version 2.7.2 (2008-08-25) 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(7.8,7.9,7.10,7.11,7.12,7.13,7.14,7.15,7.16,7.17,7.18,7.19,7.20,7.21,7.22,7.23,7.24,7.25,7.26,7.27,7.28,7.29,7.30,7.31,7.32,7.33,7.34,7.35,7.36,7.37,7.38,7.39,7.40,7.41,7.42,7.43,7.44,7.45,7.46,7.47,7.48,7.49,7.50,7.51,7.52,7.53,7.54,7.55,7.56,7.57,7.58,7.59,7.60,7.61,7.62,7.63,7.64,7.65,7.66,7.67,7.68,7.69,7.70,7.71,7.72,7.73,7.74,7.75) > 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] 68 > (np <- floor(n / par1)) [1] 5 > 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 5 5 5 5 > arr [,1] [,2] [,3] [,4] [,5] [,6] [1,] 7.80 7.20 7.32 7.44 7.56 7.68 [2,] 7.90 7.21 7.33 7.45 7.57 7.69 [3,] 7.10 7.22 7.34 7.46 7.58 7.70 [4,] 7.11 7.23 7.35 7.47 7.59 7.71 [5,] 7.12 7.24 7.36 7.48 7.60 7.72 [6,] 7.13 7.25 7.37 7.49 7.61 7.73 [7,] 7.14 7.26 7.38 7.50 7.62 7.74 [8,] 7.15 7.27 7.39 7.51 7.63 7.75 [9,] 7.16 7.28 7.40 7.52 7.64 NA [10,] 7.17 7.29 7.41 7.53 7.65 NA [11,] 7.18 7.30 7.42 7.54 7.66 NA [12,] 7.19 7.31 7.43 7.55 7.67 NA > darr [,1] [,2] [,3] [,4] [,5] [,6] [1,] 0.10 0.01 0.01 0.01 0.01 0.01 [2,] -0.80 0.01 0.01 0.01 0.01 0.01 [3,] 0.01 0.01 0.01 0.01 0.01 0.01 [4,] 0.01 0.01 0.01 0.01 0.01 0.01 [5,] 0.01 0.01 0.01 0.01 0.01 0.01 [6,] 0.01 0.01 0.01 0.01 0.01 0.01 [7,] 0.01 0.01 0.01 0.01 0.01 0.01 [8,] 0.01 0.01 0.01 0.01 0.01 NA [9,] 0.01 0.01 0.01 0.01 0.01 NA [10,] 0.01 0.01 0.01 0.01 0.01 NA [11,] 0.01 0.01 0.01 0.01 0.01 NA [12,] 0.01 0.01 0.01 0.01 0.01 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/1sv3c1225733270.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/2ttxx1225733270.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/386qd1225733270.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/4a6nc1225733270.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,] 7.20 7.21 7.10 7.11 7.12 7.13 7.14 7.15 7.16 7.17 7.18 7.19 [2,] 7.32 7.33 7.22 7.23 7.24 7.25 7.26 7.27 7.28 7.29 7.30 7.31 [3,] 7.50 7.51 7.40 7.41 7.42 7.43 7.44 7.45 7.40 7.41 7.42 7.43 [4,] 7.68 7.69 7.58 7.59 7.60 7.61 7.62 7.63 7.52 7.53 7.54 7.55 [5,] 7.80 7.90 7.70 7.71 7.72 7.73 7.74 7.75 7.64 7.65 7.66 7.67 $n [1] 6 6 6 6 6 6 6 6 5 5 5 5 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 7.267788 7.277788 7.167788 7.177788 7.187788 7.197788 7.207788 7.217788 [2,] 7.732212 7.742212 7.632212 7.642212 7.652212 7.662212 7.672212 7.682212 [,9] [,10] [,11] [,12] [1,] 7.230417 7.240417 7.250417 7.260417 [2,] 7.569583 7.579583 7.589583 7.599583 $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(7.2, 7.32, 7.5, 7.68, 7.8, 7.21, 7.33, 7.51, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/5fp3b1225733270.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.01 0.01 0.01 0.01 0.01 0.01 0.01 0.01 0.01 0.01 0.01 [2,] 0.01 0.01 0.01 0.01 0.01 0.01 0.01 0.01 0.01 0.01 0.01 0.01 [3,] 0.01 0.01 0.01 0.01 0.01 0.01 0.01 0.01 0.01 0.01 0.01 0.01 [4,] 0.01 0.01 0.01 0.01 0.01 0.01 0.01 0.01 0.01 0.01 0.01 0.01 [5,] 0.01 0.01 0.01 0.01 0.01 0.01 0.01 0.01 0.01 0.01 0.01 0.01 $n [1] 6 6 6 6 6 6 6 5 5 5 5 5 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [,9] [,10] [,11] [,12] [1,] 0.01 0.01 0.01 0.01 0.01 0.01 0.01 0.01 0.01 0.01 0.01 0.01 [2,] 0.01 0.01 0.01 0.01 0.01 0.01 0.01 0.01 0.01 0.01 0.01 0.01 $out [1] 0.10 -0.80 0.01 0.01 $group [1] 1 2 7 11 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" "11" "12" Warning message: In bxp(list(stats = c(0.00999999999999979, 0.00999999999999979, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/6g28f1225733270.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] [1,] 7.100 7.200 7.320 7.440 7.560 7.680 [2,] 7.125 7.225 7.345 7.465 7.585 7.695 [3,] 7.155 7.255 7.375 7.495 7.615 7.715 [4,] 7.185 7.285 7.405 7.525 7.645 7.735 [5,] 7.190 7.310 7.430 7.550 7.670 7.750 $n [1] 12 12 12 12 12 8 $conf [,1] [,2] [,3] [,4] [,5] [,6] [1,] 7.127634 7.227634 7.347634 7.467634 7.587634 7.692655 [2,] 7.182366 7.282366 7.402366 7.522366 7.642366 7.737345 $out [1] 7.8 7.9 $group [1] 1 1 $names [1] "1" "2" "3" "4" "5" NA Warning message: In bxp(list(stats = c(7.1, 7.125, 7.155, 7.185, 7.19, 7.2, 7.225, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/7fnas1225733270.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,] 7.400 7.400 7.400 [2,] 7.410 7.410 7.410 [3,] 7.425 7.425 7.425 [4,] 7.445 7.445 7.445 [5,] 7.450 7.450 7.450 $n [1] 12 12 12 $conf [,1] [,2] [,3] [1,] 7.409036 7.409036 7.409036 [2,] 7.440964 7.440964 7.440964 $out [1] 7.500 7.525 7.500 7.510 7.500 7.510 $group [1] 1 1 2 2 3 3 $names [1] "mean" "median" "midrange" Warning message: In bxp(list(stats = c(7.4, 7.41, 7.425, 7.445, 7.45, 7.4, 7.41, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > > system("convert tmp/1sv3c1225733270.ps tmp/1sv3c1225733270.png") > system("convert tmp/2ttxx1225733270.ps tmp/2ttxx1225733270.png") > system("convert tmp/386qd1225733270.ps tmp/386qd1225733270.png") > system("convert tmp/4a6nc1225733270.ps tmp/4a6nc1225733270.png") > system("convert tmp/5fp3b1225733270.ps tmp/5fp3b1225733270.png") > system("convert tmp/6g28f1225733270.ps tmp/6g28f1225733270.png") > system("convert tmp/7fnas1225733270.ps tmp/7fnas1225733270.png") > > > proc.time() user system elapsed 1.377 0.928 1.795