R version 2.10.1 (2009-12-14) 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.440,0.548,0.163,0.381,0.164,0.109,0.328,0.435,0.325,0.108,0.054,0.270,0.431,0.215,0.214,0.160,0.427,0.372,0.106,0.053,0.317,0.527,0.472,0.000,0.052,0.418,0.364,0.311,0.052,0.052,0.620,0.616,1.377,0.151,0.502,0.000,0.606,0.050,0.150,0.501,0.299,0.248,0.545,0.444,0.491,0.444,0.050,0.545,0.138,0.423,0.495,0.370,0.388,0.169,0.241,0.014,0.376,0.331,0.789,0.289,0.359,0.236,0.367,0.309,0.551,0.901,0.870,0.160,0.032,0.877,1.812,0.784,0.270,0.462,0.146,0.108,0.132,0.680,0.117,0.345,0.204,0.227,0.236,0.092,0.138,0.046,0.023,0.009,0.142,0.207,0.346,0.207,0.165,0.247,0.123,0.433) > 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] 96 > (np <- floor(n / par1)) [1] 8 > 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 8 8 8 8 8 8 8 8 8 8 8 > arr [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [,9] [1,] 0.440 0.431 0.052 0.606 0.138 0.359 0.270 0.138 NA [2,] 0.548 0.215 0.418 0.050 0.423 0.236 0.462 0.046 NA [3,] 0.163 0.214 0.364 0.150 0.495 0.367 0.146 0.023 NA [4,] 0.381 0.160 0.311 0.501 0.370 0.309 0.108 0.009 NA [5,] 0.164 0.427 0.052 0.299 0.388 0.551 0.132 0.142 NA [6,] 0.109 0.372 0.052 0.248 0.169 0.901 0.680 0.207 NA [7,] 0.328 0.106 0.620 0.545 0.241 0.870 0.117 0.346 NA [8,] 0.435 0.053 0.616 0.444 0.014 0.160 0.345 0.207 NA [9,] 0.325 0.317 1.377 0.491 0.376 0.032 0.204 0.165 NA [10,] 0.108 0.527 0.151 0.444 0.331 0.877 0.227 0.247 NA [11,] 0.054 0.472 0.502 0.050 0.789 1.812 0.236 0.123 NA [12,] 0.270 0.000 0.000 0.545 0.289 0.784 0.092 0.433 NA > darr [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [,9] [1,] 0.108 -0.216 0.366 -0.556 0.285 -0.123 0.192 -0.092 NA [2,] -0.385 -0.001 -0.054 0.100 0.072 0.131 -0.316 -0.023 NA [3,] 0.218 -0.054 -0.053 0.351 -0.125 -0.058 -0.038 -0.014 NA [4,] -0.217 0.267 -0.259 -0.202 0.018 0.242 0.024 0.133 NA [5,] -0.055 -0.055 0.000 -0.051 -0.219 0.350 0.548 0.065 NA [6,] 0.219 -0.266 0.568 0.297 0.072 -0.031 -0.563 0.139 NA [7,] 0.107 -0.053 -0.004 -0.101 -0.227 -0.710 0.228 -0.139 NA [8,] -0.110 0.264 0.761 0.047 0.362 -0.128 -0.141 -0.042 NA [9,] -0.217 0.210 -1.226 -0.047 -0.045 0.845 0.023 0.082 NA [10,] -0.054 -0.055 0.351 -0.394 0.458 0.935 0.009 -0.124 NA [11,] 0.216 -0.472 -0.502 0.495 -0.500 -1.028 -0.144 0.310 NA [12,] 0.161 0.052 0.606 -0.407 0.070 -0.514 0.046 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/yougetitorg/rcomp/tmp/1fhkb1305822961.ps",horizontal=F,onefile=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/yougetitorg/rcomp/tmp/2fri41305822961.ps",horizontal=F,onefile=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/yougetitorg/rcomp/tmp/3qugx1305822961.ps",horizontal=F,onefile=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/yougetitorg/rcomp/tmp/4gsdk1305822961.ps",horizontal=F,onefile=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] [1,] 0.0520 0.0460 0.0230 0.0090 0.0520 0.0520 0.1060 0.0140 0.0320 0.1080 [2,] 0.1380 0.1325 0.1480 0.1340 0.1370 0.1390 0.1790 0.1065 0.1845 0.1890 [3,] 0.3145 0.3270 0.1885 0.3100 0.2315 0.2275 0.3370 0.2760 0.3210 0.2890 [4,] 0.4355 0.4425 0.3655 0.3755 0.4075 0.5260 0.5825 0.4395 0.4335 0.4855 [5,] 0.6060 0.5480 0.4950 0.5010 0.5510 0.9010 0.8700 0.6160 0.4910 0.8770 [,11] [,12] [1,] 0.0500 0.0000 [2,] 0.0885 0.0460 [3,] 0.3540 0.2795 [4,] 0.6455 0.4890 [5,] 0.7890 0.7840 $n [1] 8 8 8 8 8 8 8 8 8 8 8 8 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] 0.1483122 0.1538295 0.06700138 0.1750946 0.08039482 0.01131624 0.1115991 [2,] 0.4806878 0.5001705 0.30999862 0.4449054 0.38260518 0.44368376 0.5624009 [,8] [,9] [,10] [,11] [,12] [1,] 0.08998142 0.1819050 0.1233708 0.0428518 0.03203384 [2,] 0.46201858 0.4600950 0.4546292 0.6651482 0.52696616 $out [1] 1.377 1.812 $group [1] 9 11 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" "11" "12" Warning message: In bxp(list(stats = c(0.052, 0.138, 0.3145, 0.4355, 0.606, 0.046, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/yougetitorg/rcomp/tmp/5vys91305822961.ps",horizontal=F,onefile=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] [1,] -0.5560 -0.385 -0.1250 -0.2590 -0.2190 -0.5630 -0.2270 -0.1410 -0.217 [2,] -0.1695 -0.185 -0.0560 -0.2095 -0.0550 -0.1485 -0.1830 -0.1190 -0.132 [3,] 0.0080 -0.012 -0.0455 0.0210 -0.0255 0.1055 -0.0770 0.0025 -0.011 [4,] 0.2385 0.086 0.1020 0.1875 0.2075 0.2580 0.0515 0.3130 0.146 [5,] 0.3660 0.131 0.2180 0.2670 0.5480 0.5680 0.2280 0.7610 0.210 [,10] [,11] [,12] [1,] -0.3940 -1.028 -0.5140 [2,] -0.0895 -0.501 -0.1805 [3,] -0.0225 -0.308 0.0520 [4,] 0.4045 0.263 0.1155 [5,] 0.9350 0.495 0.1610 $n [1] 8 8 8 8 8 8 8 8 8 8 8 7 $conf [,1] [,2] [,3] [,4] [,5] [,6] [1,] -0.2199147 -0.1633845 -0.13376107 -0.2007699 -0.1721363 -0.1215767 [2,] 0.2359147 0.1393845 0.04276107 0.2427699 0.1211363 0.3325767 [,7] [,8] [,9] [,10] [,11] [,12] [1,] -0.20799507 -0.2388214 -0.1662948 -0.2984555 -0.7347814 -0.1247664 [2,] 0.05399507 0.2438214 0.1442948 0.2534555 0.1187814 0.2287664 $out [1] 0.351 -0.710 -1.226 0.845 0.606 $group [1] 3 7 9 9 12 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" "11" "12" Warning message: In bxp(list(stats = c(-0.556, -0.1695, 0.00800000000000001, 0.2385, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/yougetitorg/rcomp/tmp/6930p1305822961.ps",horizontal=F,onefile=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] [,9] [1,] 0.0540 0.000 0.0000 0.050 0.0140 0.0320 0.0920 0.0090 NA [2,] 0.1360 0.133 0.0520 0.199 0.2050 0.2725 0.1245 0.0845 NA [3,] 0.2975 0.266 0.3375 0.444 0.3505 0.4590 0.2155 0.1535 NA [4,] 0.4080 0.429 0.5590 0.523 0.4055 0.8735 0.3075 0.2270 NA [5,] 0.5480 0.527 0.6200 0.606 0.4950 0.9010 0.4620 0.4330 NA $n [1] 12 12 12 12 12 12 12 12 0 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] 0.1734390 0.1309924 0.1062539 0.2962214 0.2590506 0.1848799 0.1320325 [2,] 0.4215610 0.4010076 0.5687461 0.5917786 0.4419494 0.7331201 0.2989675 [,8] [,9] [1,] 0.0885048 NA [2,] 0.2184952 NA $out [1] 1.377 0.789 1.812 0.680 $group [1] 3 5 6 7 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" NA Warning message: In bxp(list(stats = c(0.054, 0.136, 0.2975, 0.408, 0.548, 0, 0.133, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/yougetitorg/rcomp/tmp/7c0si1305822961.ps",horizontal=F,onefile=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.2402500 0.18850 0.2568750 [2,] 0.2768125 0.25375 0.2668125 [3,] 0.3029375 0.29950 0.2925625 [4,] 0.3803125 0.32400 0.3198125 [5,] 0.5047500 0.35400 0.3868750 $n [1] 12 12 12 $conf [,1] [,2] [,3] [1,] 0.2557305 0.2674585 0.2683888 [2,] 0.3501445 0.3315415 0.3167362 $out numeric(0) $group numeric(0) $names [1] "mean" "median" "midrange" Warning message: In bxp(list(stats = c(0.24025, 0.2768125, 0.3029375, 0.3803125, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > > try(system("convert tmp/1fhkb1305822961.ps tmp/1fhkb1305822961.png",intern=TRUE)) character(0) > try(system("convert tmp/2fri41305822961.ps tmp/2fri41305822961.png",intern=TRUE)) character(0) > try(system("convert tmp/3qugx1305822961.ps tmp/3qugx1305822961.png",intern=TRUE)) character(0) > try(system("convert tmp/4gsdk1305822961.ps tmp/4gsdk1305822961.png",intern=TRUE)) character(0) > try(system("convert tmp/5vys91305822961.ps tmp/5vys91305822961.png",intern=TRUE)) character(0) > try(system("convert tmp/6930p1305822961.ps tmp/6930p1305822961.png",intern=TRUE)) character(0) > try(system("convert tmp/7c0si1305822961.ps tmp/7c0si1305822961.png",intern=TRUE)) character(0) > > > proc.time() user system elapsed 1.510 1.210 2.155