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(1.2,1.21,1.21,1.21,1.21,1.21,1.21,1.2,1.21,1.22,1.22,1.23,1.22,1.23,1.23,1.23,1.23,1.23,1.22,1.22,1.23,1.24,1.24,1.25,1.25,1.25,1.26,1.26,1.26,1.26,1.27,1.27,1.29,1.31,1.32,1.32,1.33,1.33,1.32,1.32,1.31,1.3,1.31,1.29,1.3,1.3,1.32,1.31,1.35,1.35,1.36,1.37,1.37,1.37,1.32,1.32,1.31,1.31,1.34,1.31,1.27,1.28,1.27,1.26,1.27,1.27,1.28,1.27,1.26,1.3,1.31,1.28,1.29,1.31,1.29,1.29,1.32,1.3,1.29,1.31,1.29,1.33,1.35,1.32,1.33) > 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] 85 > (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] 8 7 7 7 7 7 7 7 7 7 7 7 > arr [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 1.20 1.22 1.25 1.33 1.35 1.27 1.29 1.33 [2,] 1.21 1.23 1.25 1.33 1.35 1.28 1.31 NA [3,] 1.21 1.23 1.26 1.32 1.36 1.27 1.29 NA [4,] 1.21 1.23 1.26 1.32 1.37 1.26 1.29 NA [5,] 1.21 1.23 1.26 1.31 1.37 1.27 1.32 NA [6,] 1.21 1.23 1.26 1.30 1.37 1.27 1.30 NA [7,] 1.21 1.22 1.27 1.31 1.32 1.28 1.29 NA [8,] 1.20 1.22 1.27 1.29 1.32 1.27 1.31 NA [9,] 1.21 1.23 1.29 1.30 1.31 1.26 1.29 NA [10,] 1.22 1.24 1.31 1.30 1.31 1.30 1.33 NA [11,] 1.22 1.24 1.32 1.32 1.34 1.31 1.35 NA [12,] 1.23 1.25 1.32 1.31 1.31 1.28 1.32 NA > darr [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 0.01 0.01 0.00 0.00 0.00 0.01 0.02 NA [2,] 0.00 0.00 0.01 -0.01 0.01 -0.01 -0.02 NA [3,] 0.00 0.00 0.00 0.00 0.01 -0.01 0.00 NA [4,] 0.00 0.00 0.00 -0.01 0.00 0.01 0.03 NA [5,] 0.00 0.00 0.00 -0.01 0.00 0.00 -0.02 NA [6,] 0.00 -0.01 0.01 0.01 -0.05 0.01 -0.01 NA [7,] -0.01 0.00 0.00 -0.02 0.00 -0.01 0.02 NA [8,] 0.01 0.01 0.02 0.01 -0.01 -0.01 -0.02 NA [9,] 0.01 0.01 0.02 0.00 0.00 0.04 0.04 NA [10,] 0.00 0.00 0.01 0.02 0.03 0.01 0.02 NA [11,] 0.01 0.01 0.00 -0.01 -0.03 -0.03 -0.03 NA [12,] -0.01 0.00 0.01 0.04 -0.04 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/1zcud1259340073.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/2ru4c1259340073.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/3vepf1259340073.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/4q2pv1259340073.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.200 1.21 1.210 1.210 1.210 1.210 1.210 1.200 1.210 1.22 1.220 1.230 [2,] 1.235 1.24 1.245 1.245 1.245 1.245 1.245 1.245 1.245 1.27 1.275 1.265 [3,] 1.280 1.28 1.270 1.260 1.270 1.270 1.280 1.270 1.290 1.30 1.320 1.310 [4,] 1.330 1.32 1.305 1.305 1.315 1.300 1.300 1.300 1.295 1.31 1.330 1.315 [5,] 1.350 1.35 1.360 1.370 1.370 1.370 1.320 1.320 1.310 1.33 1.350 1.320 $n [1] 8 7 7 7 7 7 7 7 7 7 7 7 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 1.226932 1.232225 1.234169 1.224169 1.228197 1.237155 1.247155 1.237155 [2,] 1.333068 1.327775 1.305831 1.295831 1.311803 1.302845 1.312845 1.302845 [,9] [,10] [,11] [,12] [1,] 1.260141 1.276113 1.287155 1.280141 [2,] 1.319859 1.323887 1.352845 1.339859 $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(1.2, 1.235, 1.28, 1.33, 1.35, 1.21, 1.24, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/5ynm31259340073.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.00 -0.020 0 0.000 -0.010 -0.01 -0.02 -0.02 0.000 0.000 -0.030 -0.010 [2,] 0.00 -0.010 0 0.000 -0.005 -0.01 -0.01 -0.01 0.005 0.005 -0.030 -0.005 [3,] 0.01 0.000 0 0.000 0.000 0.00 0.00 0.01 0.010 0.010 -0.010 0.010 [4,] 0.01 0.005 0 0.005 0.000 0.01 0.00 0.01 0.030 0.020 0.005 0.010 [5,] 0.02 0.010 0 0.010 0.000 0.01 0.00 0.02 0.040 0.030 0.010 0.010 $n [1] 7 7 7 7 7 7 7 7 7 7 7 7 $conf [,1] [,2] [,3] [,4] [,5] [,6] [1,] 0.004028161 -0.008957758 0 -0.002985919 -0.002985919 -0.01194368 [2,] 0.015971839 0.008957758 0 0.002985919 0.002985919 0.01194368 [,7] [,8] [,9] [,10] [,11] [,12] [1,] -0.005971839 -0.001943677 -0.004929597 0.001042242 -0.03090144 0.001042242 [2,] 0.005971839 0.021943677 0.024929597 0.018957758 0.01090144 0.018957758 $out [1] 0.01 -0.01 -0.01 0.03 -0.02 -0.05 0.02 0.04 -0.04 $group [1] 3 3 4 4 5 6 7 12 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.01, 0.01, 0.02, -0.02, -0.01, 0, 0.005, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/6apl71259340073.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.210 1.220 1.250 1.29 1.310 1.26 1.290 1.33 [2,] 1.210 1.225 1.260 1.30 1.315 1.27 1.290 1.33 [3,] 1.210 1.230 1.265 1.31 1.345 1.27 1.305 1.33 [4,] 1.215 1.235 1.300 1.32 1.365 1.28 1.320 1.33 [5,] 1.220 1.240 1.320 1.33 1.370 1.28 1.350 1.33 $n [1] 12 12 12 12 12 12 12 1 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 1.207719 1.225439 1.246756 1.300878 1.322195 1.265439 1.291317 1.33 [2,] 1.212281 1.234561 1.283244 1.319122 1.367805 1.274561 1.318683 1.33 $out [1] 1.20 1.20 1.23 1.25 1.30 1.31 $group [1] 1 1 1 2 6 6 $names [1] "1" "2" "3" "4" "5" "6" "7" NA Warning message: In bxp(list(stats = c(1.21, 1.21, 1.21, 1.215, 1.22, 1.22, 1.225, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/7nhsk1259340073.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.268571 1.260 1.270000 [2,] 1.274286 1.270 1.272500 [3,] 1.278571 1.280 1.277500 [4,] 1.284286 1.295 1.288125 [5,] 1.288571 1.320 1.302500 $n [1] 12 12 12 $conf [,1] [,2] [,3] [1,] 1.274010 1.268597 1.270373 [2,] 1.283132 1.291403 1.284627 $out [1] 1.3 $group [1] 1 $names [1] "mean" "median" "midrange" Warning message: In bxp(list(stats = c(1.26857142857143, 1.27428571428571, 1.27857142857143, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > > system("convert tmp/1zcud1259340073.ps tmp/1zcud1259340073.png") > system("convert tmp/2ru4c1259340073.ps tmp/2ru4c1259340073.png") > system("convert tmp/3vepf1259340073.ps tmp/3vepf1259340073.png") > system("convert tmp/4q2pv1259340073.ps tmp/4q2pv1259340073.png") > system("convert tmp/5ynm31259340073.ps tmp/5ynm31259340073.png") > system("convert tmp/6apl71259340073.ps tmp/6apl71259340073.png") > system("convert tmp/7nhsk1259340073.ps tmp/7nhsk1259340073.png") > > > proc.time() user system elapsed 1.224 0.953 1.849