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(10.383,10.431,10.574,10.653,10.805,10.872,10.625,10.407,10.463,10.556,10.646,10.702,11.353,11.346,11.451,11.964,12.574,13.031,13.812,14.544,14.931,14.886,16.005,17.064,15.168,16.050,15.839,15.137,14.954,15.648,15.305,15.579,16.348,15.928,16.171,15.937,15.713,15.594,15.683,16.438,17.032,17.696,17.745,19.394,20.148,20.108,18.584,18.441,18.391,19.178,18.079,18.483,19.644,19.195,19.650,20.830,23.595,22.937,21.814,21.928,21.777,21.383,21.467,22.052,22.680,24.320,24.977,25.204,25.739,26.434,27.525,30.695) > 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,] 10.383 11.353 15.168 15.713 18.391 21.777 NA [2,] 10.431 11.346 16.050 15.594 19.178 21.383 NA [3,] 10.574 11.451 15.839 15.683 18.079 21.467 NA [4,] 10.653 11.964 15.137 16.438 18.483 22.052 NA [5,] 10.805 12.574 14.954 17.032 19.644 22.680 NA [6,] 10.872 13.031 15.648 17.696 19.195 24.320 NA [7,] 10.625 13.812 15.305 17.745 19.650 24.977 NA [8,] 10.407 14.544 15.579 19.394 20.830 25.204 NA [9,] 10.463 14.931 16.348 20.148 23.595 25.739 NA [10,] 10.556 14.886 15.928 20.108 22.937 26.434 NA [11,] 10.646 16.005 16.171 18.584 21.814 27.525 NA [12,] 10.702 17.064 15.937 18.441 21.928 30.695 NA > darr [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] 0.048 -0.007 0.882 -0.119 0.787 -0.394 NA [2,] 0.143 0.105 -0.211 0.089 -1.099 0.084 NA [3,] 0.079 0.513 -0.702 0.755 0.404 0.585 NA [4,] 0.152 0.610 -0.183 0.594 1.161 0.628 NA [5,] 0.067 0.457 0.694 0.664 -0.449 1.640 NA [6,] -0.247 0.781 -0.343 0.049 0.455 0.657 NA [7,] -0.218 0.732 0.274 1.649 1.180 0.227 NA [8,] 0.056 0.387 0.769 0.754 2.765 0.535 NA [9,] 0.093 -0.045 -0.420 -0.040 -0.658 0.695 NA [10,] 0.090 1.119 0.243 -1.524 -1.123 1.091 NA [11,] 0.056 1.059 -0.234 -0.143 0.114 3.170 NA [12,] 0.651 -1.896 -0.224 -0.050 -0.151 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/16ntr1275822401.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/2yxau1275822401.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/3yxau1275822401.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/49oaf1275822401.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] [1,] 10.3830 10.431 10.574 10.6530 10.805 10.872 10.625 10.4070 10.463 10.556 [2,] 11.3530 11.346 11.451 11.9640 12.574 13.031 13.812 14.5440 14.931 14.886 [3,] 15.4405 15.822 15.761 15.7875 15.993 16.672 16.525 17.4865 18.248 18.018 [4,] 18.3910 19.178 18.079 18.4830 19.644 19.195 19.650 20.8300 23.595 22.937 [5,] 21.7770 21.383 21.467 22.0520 22.680 24.320 24.977 25.2040 25.739 26.434 [,11] [,12] [1,] 10.6460 10.7020 [2,] 16.0050 15.9370 [3,] 17.3775 17.7525 [4,] 21.8140 21.9280 [5,] 27.5250 30.6950 $n [1] 6 6 6 6 6 6 6 6 6 6 6 6 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 10.90076 10.77011 11.48573 11.58253 11.43262 12.69602 12.75930 13.43183 [2,] 19.98024 20.87389 20.03627 19.99247 20.55338 20.64798 20.29070 21.54117 [,9] [,10] [,11] [,12] [1,] 12.65944 12.82484 13.63051 13.88811 [2,] 23.83656 23.21116 21.12449 21.61689 $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(10.383, 11.353, 15.4405, 18.391, 21.777, 10.431, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/freestat/rcomp/tmp/59oaf1275822401.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.3940 -0.2110 0.0790 -0.183 -0.4490 -0.343 -0.218 0.0560 -0.6580 -1.5240 [2,] -0.1190 -0.2110 0.0790 0.152 0.0670 -0.247 0.227 0.3870 -0.4200 -1.1230 [3,] 0.0205 0.0865 0.4585 0.602 0.5605 0.252 0.503 0.6445 -0.0425 0.1665 [4,] 0.7870 0.1050 0.5850 0.628 0.6940 0.657 1.180 0.7690 0.0930 1.0910 [5,] 0.8820 0.1430 0.7550 1.161 0.6940 0.781 1.649 0.7690 0.6950 1.1190 [,11] [,12] [1,] -0.234 -0.224 [2,] -0.143 -0.224 [3,] 0.085 -0.151 [4,] 1.059 -0.050 [5,] 1.059 -0.050 $n [1] 6 6 6 6 6 6 6 6 6 6 6 5 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] -0.5638993 -0.1173302 0.1321137 0.2949646 0.1560647 -0.3311092 -0.1117158 [2,] 0.6048993 0.2903302 0.7848863 0.9090354 0.9649353 0.8351092 1.1177158 [,8] [,9] [,10] [,11] [,12] [1,] 0.3980977 -0.3734016 -1.261602 -0.6903288 -0.27394796 [2,] 0.8909023 0.2884016 1.594602 0.8603288 -0.02805204 $out [1] -1.099 -0.702 1.640 2.765 3.170 0.651 -1.896 $group [1] 2 3 5 8 11 12 12 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" "11" "12" Warning message: In bxp(list(stats = c(-0.394000000000002, -0.119000000000000, 0.0205000000000002, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/freestat/rcomp/tmp/6kfr01275822401.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,] 10.3830 11.3460 14.9540 15.5940 18.0790 21.3830 NA [2,] 10.4470 11.7075 15.2365 16.0755 18.8305 21.9145 NA [3,] 10.5995 13.4215 15.7435 17.7205 19.6470 24.6485 NA [4,] 10.6775 14.9085 15.9935 18.9890 21.8710 26.0865 NA [5,] 10.8720 17.0640 16.3480 20.1480 23.5950 30.6950 NA $n [1] 12 12 12 12 12 12 0 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] 10.49437 11.96150 15.39823 16.39163 18.26021 22.74562 NA [2,] 10.70463 14.88150 16.08877 19.04937 21.03379 26.55138 NA $out numeric(0) $group numeric(0) $names [1] "1" "2" "3" "4" "5" "6" NA Warning message: In bxp(list(stats = c(10.383, 10.447, 10.5995, 10.6775, 10.872, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/freestat/rcomp/tmp/7kfr01275822401.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,] 15.46417 15.44050 15.01400 [2,] 15.72575 15.80475 15.38325 [3,] 16.90633 16.59850 16.46612 [4,] 18.46617 17.61950 18.58200 [5,] 19.12783 18.24800 19.00925 $n [1] 12 12 12 $conf [,1] [,2] [,3] [1,] 15.65641 15.77078 15.00715 [2,] 18.15626 17.42622 17.92510 $out numeric(0) $group numeric(0) $names [1] "mean" "median" "midrange" Warning message: In bxp(list(stats = c(15.4641666666667, 15.72575, 16.9063333333333, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > > try(system("convert tmp/16ntr1275822401.ps tmp/16ntr1275822401.png",intern=TRUE)) character(0) > try(system("convert tmp/2yxau1275822401.ps tmp/2yxau1275822401.png",intern=TRUE)) character(0) > try(system("convert tmp/3yxau1275822401.ps tmp/3yxau1275822401.png",intern=TRUE)) character(0) > try(system("convert tmp/49oaf1275822401.ps tmp/49oaf1275822401.png",intern=TRUE)) character(0) > try(system("convert tmp/59oaf1275822401.ps tmp/59oaf1275822401.png",intern=TRUE)) character(0) > try(system("convert tmp/6kfr01275822401.ps tmp/6kfr01275822401.png",intern=TRUE)) character(0) > try(system("convert tmp/7kfr01275822401.ps tmp/7kfr01275822401.png",intern=TRUE)) character(0) > > > proc.time() user system elapsed 1.843 1.457 2.056