R version 2.9.0 (2009-04-17) Copyright (C) 2009 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(0.5270,0.4720,0.0000,0.0520,0.3130,0.3640,0.3630,-0.1550,0.0520,0.5680,0.6680,1.3780,0.2520,-0.4020,-0.0500,0.5550,0.0500,0.1500,0.4500,0.2990,0.1990,0.4960,0.4440,-0.3930,-0.4440,0.1980,0.4940,0.1330,0.3880,0.4840,0.2780,0.3690,0.1650,0.1550,0.0870,0.4140,0.3600,0.9750,0.2700,0.3590,0.1690,0.3810,0.1540,0.4860,0.9250,0.7280,-0.0140,0.0460,-0.8190,-1.6740,-0.7880,0.2790,0.3960,-0.1410,-0.0190,0.0990,0.7420,0.0050,0.4480) > 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] 59 > (np <- floor(n / par1)) [1] 4 > 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] 5 5 5 5 5 5 5 5 5 5 5 4 > arr [,1] [,2] [,3] [,4] [,5] [1,] 0.527 0.252 -0.444 0.360 -0.819 [2,] 0.472 -0.402 0.198 0.975 -1.674 [3,] 0.000 -0.050 0.494 0.270 -0.788 [4,] 0.052 0.555 0.133 0.359 0.279 [5,] 0.313 0.050 0.388 0.169 0.396 [6,] 0.364 0.150 0.484 0.381 -0.141 [7,] 0.363 0.450 0.278 0.154 -0.019 [8,] -0.155 0.299 0.369 0.486 0.099 [9,] 0.052 0.199 0.165 0.925 0.742 [10,] 0.568 0.496 0.155 0.728 0.005 [11,] 0.668 0.444 0.087 -0.014 0.448 [12,] 1.378 -0.393 0.414 0.046 NA > darr [,1] [,2] [,3] [,4] [,5] [1,] -0.055 -0.654 0.642 0.615 -0.855 [2,] -0.472 0.352 0.296 -0.705 0.886 [3,] 0.052 0.605 -0.361 0.089 1.067 [4,] 0.261 -0.505 0.255 -0.190 0.117 [5,] 0.051 0.100 0.096 0.212 -0.537 [6,] -0.001 0.300 -0.206 -0.227 0.122 [7,] -0.518 -0.151 0.091 0.332 0.118 [8,] 0.207 -0.100 -0.204 0.439 0.643 [9,] 0.516 0.297 -0.010 -0.197 -0.737 [10,] 0.100 -0.052 -0.068 -0.742 0.443 [11,] 0.710 -0.837 0.327 0.060 NA [12,] -1.126 -0.051 -0.054 -0.865 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/18ogb1260526272.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/2gd341260526272.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/3vfb41260526272.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/4ft2m1260526272.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] [1,] -0.819 -1.674 -0.050 0.052 0.050 -0.141 -0.019 -0.155 0.052 0.005 -0.014 [2,] -0.444 -0.402 -0.050 0.133 0.169 0.150 0.154 0.099 0.165 0.155 0.087 [3,] 0.252 0.198 0.000 0.279 0.313 0.364 0.278 0.299 0.199 0.496 0.444 [4,] 0.360 0.472 0.270 0.359 0.388 0.381 0.363 0.369 0.742 0.568 0.448 [5,] 0.527 0.975 0.494 0.555 0.396 0.484 0.450 0.486 0.925 0.728 0.668 [,12] [1,] -0.3930 [2,] -0.1735 [3,] 0.2300 [4,] 0.8960 [5,] 1.3780 $n [1] 5 5 5 5 5 5 5 5 5 5 5 4 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] -0.3161044 -0.4195662 -0.2261112 0.1193090 0.1582552 0.200776 0.1303211 [2,] 0.8201044 0.8155662 0.2261112 0.4386910 0.4677448 0.527224 0.4256789 [,8] [,9] [,10] [,11] [,12] [1,] 0.1082187 -0.2087067 0.2041752 0.1889183 -0.614905 [2,] 0.4897813 0.6067067 0.7878248 0.6990817 1.074905 $out [1] -0.788 $group [1] 3 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" "11" "12" Warning message: In bxp(list(stats = c(-0.819, -0.444, 0.252, 0.36, 0.527, -1.674, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/5wt0v1260526272.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] [1,] -0.855 -0.705 -0.361 -0.505 0.051 -0.227 -0.518 -0.204 -0.737 -0.068 [2,] -0.654 -0.472 0.052 -0.190 0.051 -0.206 -0.151 -0.100 -0.197 -0.068 [3,] -0.055 0.296 0.089 0.117 0.096 -0.001 0.091 0.207 -0.010 -0.052 [4,] 0.615 0.352 0.605 0.255 0.100 0.122 0.118 0.439 0.297 0.100 [5,] 0.642 0.886 1.067 0.261 0.100 0.300 0.332 0.643 0.516 0.100 [,11] [,12] [1,] -0.8370 -1.1260 [2,] -0.3885 -0.9955 [3,] 0.1935 -0.4595 [4,] 0.5185 -0.0525 [5,] 0.7100 -0.0510 $n [1] 5 5 5 5 5 5 5 5 5 5 4 4 $conf [,1] [,2] [,3] [,4] [,5] [,6] [1,] -0.9516722 -0.2862363 -0.3017484 -0.1974359 0.06137672 -0.2327640 [2,] 0.8416722 0.8782363 0.4797484 0.4314359 0.13062328 0.2307640 [,7] [,8] [,9] [,10] [,11] [,12] [1,] -0.09907472 -0.1738560 -0.3590592 -0.17070838 -0.52303 -1.20447 [2,] 0.28107472 0.5878560 0.3390592 0.06670838 0.91003 0.28547 $out [1] 0.212 -0.537 -0.742 0.443 $group [1] 5 5 10 10 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" "11" "12" Warning message: In bxp(list(stats = c(-0.855, -0.654, -0.05500, 0.615, 0.642, -0.705, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/6f0vv1260526272.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] [1,] -0.1550 -0.4020 0.087 -0.0140 -0.8190 [2,] 0.0520 0.0000 0.144 0.1615 -0.4645 [3,] 0.3635 0.2255 0.238 0.3595 0.0050 [4,] 0.5475 0.4470 0.401 0.6070 0.3375 [5,] 0.6680 0.5550 0.494 0.9750 0.7420 $n [1] 12 12 12 12 11 $conf [,1] [,2] [,3] [,4] [,5] [1,] 0.1374991 0.0216203 0.1207806 0.1563045 -0.3770631 [2,] 0.5895009 0.4293797 0.3552194 0.5626955 0.3870631 $out [1] 1.378 -0.444 -1.674 $group [1] 1 3 5 $names [1] "1" "2" "3" "4" NA Warning message: In bxp(list(stats = c(-0.155, 0.052, 0.3635, 0.5475, 0.668, -0.402, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/7ywjl1260526272.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,] -0.086200 0.1980 0.0350000 [2,] 0.102400 0.2145 0.1720000 [3,] 0.255400 0.2785 0.2620000 [4,] 0.343925 0.3385 0.2870625 [5,] 0.416600 0.4960 0.4535000 $n [1] 12 12 12 $conf [,1] [,2] [,3] [1,] 0.1452388 0.2219428 0.2095192 [2,] 0.3655612 0.3350572 0.3144808 $out [1] 0.000 -0.042 $group [1] 2 3 $names [1] "mean" "median" "midrange" Warning message: In bxp(list(stats = c(-0.0862, 0.1024, 0.2554, 0.343925, 0.4166, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > > system("convert tmp/18ogb1260526272.ps tmp/18ogb1260526272.png") > system("convert tmp/2gd341260526272.ps tmp/2gd341260526272.png") > system("convert tmp/3vfb41260526272.ps tmp/3vfb41260526272.png") > system("convert tmp/4ft2m1260526272.ps tmp/4ft2m1260526272.png") > system("convert tmp/5wt0v1260526272.ps tmp/5wt0v1260526272.png") > system("convert tmp/6f0vv1260526272.ps tmp/6f0vv1260526272.png") > system("convert tmp/7ywjl1260526272.ps tmp/7ywjl1260526272.png") > > > proc.time() user system elapsed 1.196 0.948 3.170